I don't have an idea to create function and addEvent. One person instructed me how to do this.
I try this:
But I don't know it is works.. Do you help me?
Thanks.
You create functions checkPlayerStatus() calls it say what 1000ms (addEvent)
There are get the player by cid, if nil, then reset the bonus and cease to perform checkPlayerStatus ()
How to write this function?
I try this:
PHP:
function checkPlayerStatus()
end
addEvent(checkPlayerStatus(), 1000)
Thanks.