waleedgh Posted June 2, 2016 Share Posted June 2, 2016 function jump(player) if isTimer (timer) then toggleControl (player, "jump", false ) else toggleControl (player, "jump", true ) end end function time(thePlayer) timer=setTimer(jump,5000,1) end addEventHandler("onPlayerDamage",getRootElement(thePlayer),time) expected player at argument 1,line 3,4 help plz Link to comment
ViRuZGamiing Posted June 2, 2016 Share Posted June 2, 2016 function jump() toggleControl (source, "jump", false ) setTimer(function(player) toggleControl (player, "jump", true) end, 5000,1, source) end addEventHandler("onPlayerDamage", getRootElement(), jump) If I'm right this is what you're trying to achieve Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now