Apo Posted June 4, 2016 Share Posted June 4, 2016 (edited) hi how to cancel function for example:how to cancel faction 1 in the faction 2 function 1() code end function 2() how to cancel function 1 here? end Edited June 5, 2016 by Guest Link to comment
ViRuZGamiing Posted June 4, 2016 Share Posted June 4, 2016 What do you mean? He means function instead of faction Link to comment
StefanAlmighty Posted June 4, 2016 Share Posted June 4, 2016 Use return false for that. Link to comment
Apo Posted June 5, 2016 Author Share Posted June 5, 2016 (edited) no how to false function int other function for example: function checkAFKPlayers() for index, thePlayer in ipairs(getElementsByType("player"))do if (getPlayerIdleTime(thePlayer) > 300000) then kickPlayer(thePlayer, "Idle for 5 minutes") end end end setTimer(checkAFKPlayers, 30000, 0) - how to make new function for cancel or false function checkafkplayer Edited June 5, 2016 by Guest Link to comment
Apo Posted June 5, 2016 Author Share Posted June 5, 2016 i need cancel function how to cancel function Link to comment
Bean666 Posted June 5, 2016 Share Posted June 5, 2016 as he said use killTimer or if you mean: cancelEvent well i dont know if you mean cancelEvent but imo, it's killTimer that can cancel that function you are making. 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