Doubt????
#1

how to make a timer that stops on player disconnect and continue on player connect ??
Reply
#2

First you make timer
Then you do this
PHP код:
new Timer1[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    
Timer1[playerid] = SetTimerEx(blah blah blah);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
KillTimer(Timer1[playerid])
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)