Jump to content

help


Apo

Recommended Posts

Posted (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 by Guest

only god (الله) اشهد ان لا اله الا الله واشهد ان محمد رسول الله

Posted (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 by Guest

only god (الله) اشهد ان لا اله الا الله واشهد ان محمد رسول الله

Posted

i need cancel function

how to cancel function

only god (الله) اشهد ان لا اله الا الله واشهد ان محمد رسول الله

Posted

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.

Aftermath

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...