Jump to content

Prat

Members
  • Posts

    32
  • Joined

  • Last visited

Prat's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Prat

    Little question.

    because of .map file its written dimension = "0"
  2. How to build a map in dimension 5 ? Thank you.
  3. Prat

    Halp!

    Hello, how to make an object visible to the client only? thanks for your time.
  4. Prat

    Requesting help.

    appreciate that man , thanks.
  5. Prat

    Requesting help.

    now it works successfuly , the setPlayerMuted is infinite , i want to time it to 10 seconds. and thanks castillo <3
  6. Prat

    Requesting help.

    i'v used this but it ouput a bad arg line in debug msg addEvent ("onMuteNab", true) addEventHandler ("onMuteNab", root, function () victim = getPlayerFromName(playerName) setPlayerMuted (victim, true) outputChatBox ("You have been Muted", victim) end )
  7. Prat

    Requesting help.

    i hate the "getPlayerBlablabla" thingy dingy obama tingy, so please add it for me , i'm so confused now
  8. Prat

    Requesting help.

    would you add it please? :3 here is the server side :- addEvent ("onMutePlaya") addEventHandler ("onMutePlaya", root, function () setPlayerMuted (playerName, true) end ) Also i wannna change "setPlayerMuted" to 10 minutes instead of infinite. Appreciate that man EDIT: localPlayer is the muter or the muted guy ?
  9. Prat

    Requesting help.

    exactly , how to send it to the remote trigger?
  10. Now i hope it works. Good luck function spawnGood ( player ) spawnPlayer ( player, posX, posY, posZ - 9, 0, 111, 0, 0, nil ) giveWeapon ( player, 23, 100 ) giveWeapon ( player, 8, 1 ) giveWeapon ( player, 35, 1 ) end function wastedGood ( ) spawnPlayer ( source, posX, posY, posZ - 9, 0, 121, 0, 0, nil ) giveWeapon ( source, 23, 100 ) giveWeapon ( source, 8, 1 ) giveWeapon ( source, 35, 1 ) end function spawnDead ( player ) spawnPlayer ( player, posX, posY, posZ - 9, 0, 111, 0, 0, nil ) giveWeapon ( player, 23, 100 ) giveWeapon ( player, 8, 1 ) giveWeapon ( player, 35, 1 ) end function wastedDead ( ) spawnPlayer ( source, posX, posY, posZ - 9, 0, 121, 0, 0, nil ) giveWeapon ( source, 23, 100 ) giveWeapon ( source, 8, 1 ) giveWeapon ( source, 35, 1 ) end addEventHandler ( "onPlayerJoin", getRootElement (), function ( ) bindKey ( "1", "down", spawnGood ) bindKey ( "2", "down", spawnDead ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( "1", "down", spawnGood ) bindKey ( "2", "down", spawnDead ) end end ) addEventHandler ( "onPlayerWasted", getRootElement (), wastedGood ) addEventHandler ( "onPlayerWasted", getRootElement (), wastedDead )
  11. Prat

    Table locations

    Hi there , i'v fixed it so now it gonna create 2 object randomly from #locations once the resource starts. replace ID in line 12 & 13 with the object model id , you can find it in map editor. i believe this code is easier than denny's. Good Luck locations = { { 529, -1884, 3 }, { 612, -1884, 3 }, { -2920, 68, 1 }, { -2913, 159, 3 }, } function startDaTable () random = math.random(#locations) x, y, z = locations[random][1], pickupT[random][2], pickupT[random][3] createObject ( ID, x, y, z) createObject ( ID, x, y, z) end addEventHandler ("onResourceStart", root, startDaTable)
  12. i believe there is no reason to stop it from working. Good luck local gate = createObject(976,-1534.7,482,6.32, 0, 0, 0 ) function opengatep() if not ( getPlayerTeam( thePlayer ) ) == false then if ( getTeamName( getPlayerTeam( thePlayer ) ) == "myTeam" ) then moveObject(gate, 2000, -1544,482,6.32, 0, 0, 0 ) end end end function closegatep() if not ( getPlayerTeam( thePlayer ) ) == false then if ( getTeamName( getPlayerTeam( thePlayer ) ) == "myTeam" ) then moveObject(gate, 2000, -1534.7,482,6.32, 0, 0, 0 ) end end end cancello = createMarker ( -1530, 482.2, 6.2 ,"cylinder", 13, 0, 0, 255, 0) addEventHandler("onMarkerHit", cancello, opengatep) addEventHandler("onMarkerLeave", cancello, closegatep)
×
×
  • Create New...