UsErFaiLed Posted October 22, 2013 Share Posted October 22, 2013 Hello people would like someone helps me in this script the script the first function of time to do the command grab as another command to remove the time There is KillTimer () can someone help me scripts Below Google Translate!! function timer (thePlayer) if ( hasObjectPermissionTo ( thePlayer, "function.kickPlayer", false ) ) then setElementData(thePlayer, "blood",999999999) Timer = setTimer(setElementData,50,0,thePlayer, "brokenbone" , false ) Timer = setTimer(setElementData,50,0,thePlayer, "pain" , false ) Timer = setTimer(setElementData,50,0,thePlayer, "cold" , false ) Timer = setTimer(setElementData,50,0,thePlayer, "bleeding" , false ) Timer = setTimer(setElementData,50,0,thePlayer, "food" , 100 ) Timer = setTimer(setElementData,50,0,thePlayer, "thirst" , 100 ) end end addCommandHandler("ma" , timer ) function killtimer (thePlayer) killTimer(Timer) end addCommandHandler("mp" , killtimer ) Link to comment
BieHDC Posted October 22, 2013 Share Posted October 22, 2013 why you set a timer for this? I think it is not needed Link to comment
UsErFaiLed Posted October 22, 2013 Author Share Posted October 22, 2013 why you set a timer for this?I think it is not needed is because I need that way because of GameMode Link to comment
xXMADEXx Posted October 22, 2013 Share Posted October 22, 2013 Why don't use just put all the setElementData's in the same timer? It'll be more efficient . 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