Jump to content

Snaik

Members
  • Posts

    33
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Snaik's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Snaik

    Help me

    I never saw that event"onClientExplosion", let see what i can do then I created a safe zone, but grenades can explode inside it and i dont want that to happen ._.
  2. Snaik

    Help me

    Well.. Thanks for the info .
  3. Snaik

    Help me

    I want to cancel a grenade explode when it hits a marker. Is it possible? If yes then what should i do? Thanks in advance
  4. Snaik

    A question

    Thank you again .
  5. Snaik

    A question

    How do i get a variable from another resource ?
  6. This will open/close that gate only if the player is in the team called "police" : policegate = createObject(10184,-1631.4000244141,688.5,8.6999998092651,0,0,270) function policeo (thePlayer) local theTeam=getPlayerTeam(thePlayer) if theTeam then if getTeamName(theTeam)=="police" then moveObject ( policegate, 300, -1631.4000244141,688.5,13) end end end addCommandHandler("op",policeo) function policec (thePlayer) local theTeam=getPlayerTeam(thePlayer) if theTeam then if getTeamName(theTeam)=="police" then moveObject ( policegate, 300, -1631.4000244141,688.5,8.6999998092651) end end end addCommandHandler("cp",policec)
  7. Snaik

    Disabled CJ run

    Explain more please
  8. Snaik

    Disabled CJ run

    Well, toggleControl (thePlayer, "sprint", false ) will make the "thePlayer" not able to run
  9. Snaik

    Disabled CJ run

    Yes, you can use setControlState https://wiki.multitheftauto.com/wiki/SetControlState
  10. well i think it should work now cuz u said the team name is "Gen" not "gen" addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () local aTimer=setTimer ( genPayDay, 10000, 0 ) end ) function genPayDay() for i, player in ipairs(getElementsByType("player")) do local theTeam=getPlayerTeam(player) if theTeam then if getTeamName(theTeam)=="Gen" then outputChatBox ( "*------------ payday ------------", player, 0, 255, 0) outputChatBox ( "*text1", player, 0, 255, 0) outputChatBox ( "*text2", player, 0, 255, 0) outputChatBox ( "*text3", player, 0, 255, 0) givePlayerMoney ( player, 500 ) end end end end
  11. try this : (edited) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () local aTimer=setTimer ( genPayDay, 10000, 0 ) end ) function genPayDay() for i, player in ipairs(getElementsByType("player")) do local theTeam=getPlayerTeam(player) if theTeam then if getTeamName(theTeam)=="gen" then outputChatBox ( "*------------ payday ------------", player, 0, 255, 0) outputChatBox ( "*text1", player, 0, 255, 0) outputChatBox ( "*text2", player, 0, 255, 0) outputChatBox ( "*text3", player, 0, 255, 0) givePlayerMoney ( player, 500 ) end end end end
  12. I want to get a divided results to only show two numbers after the coma. how do i do that ? like : 9 divided by 7 = 1,28571429 i only want it to show "1,28". Sorry for asking too much questions .
×
×
  • Create New...