TorNix~|nR Posted April 12, 2017 Share Posted April 12, 2017 Hello guys, I have a kill command script, it works fine, but it bugs you can use /kill many times, I want to disable the /kill while its on progress help? addCommandHandler('kill', function(kill) setTimer(killPed, 10000, 1, kill) setElementFrozen (kill, true) end ) function Respawn (kill) setElementFrozen (kill, false) end addEventHandler ("onPlayerRespawn", kill, respawn) Link to comment
NeXuS™ Posted April 12, 2017 Share Posted April 12, 2017 (edited) addCommandHandler('kill', function(kill) if not isTimer(killingTimer) then killingTimer = setTimer(killPed, 10000, 1, kill) end end) Edited April 12, 2017 by NeXuS™ Link to comment
TorNix~|nR Posted April 12, 2017 Author Share Posted April 12, 2017 Thank you so much @NeXuS™ 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