is their a function?
#1

hi guys im wondering if their a function for a timer example


Код:
if(timer = is going)
{
        //code
}
thanks


im trying to make it so if you disconnect it'll kill the timer if a timer is going on you
Reply
#2

You could use variables, but I don't see why you wouldn't just use KillTimer.
Reply
#3

new playertimer[MAX_PLAYERS]; // above your script.

When you enable the timer:

playertimer[playerid] = SetTimer....

onplayerdisconnect:

KillTimer(playertimer[playerid]);
Reply
#4

thnks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)