Posts: 110
Threads: 20
Joined: Jan 2011
Reputation:
0
I know you can set the timer for a player, using SetTimerEx or SetTimer but when the player logs out and logs in the timer will reset. I was wondering how I could stop the timer when the player logs out, and when the player logs back in it continues.
Thanks in advance
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
[/pawn]
new pTimer[MAX_PLAYERS];
pTimer = SetTimerEx(.........) or SetTimer(....)
OnPlayerDisconnect(playerid, reason)
{
KillTimer(pTimer[playerid];
return 1;
}[/pawn]
Posts: 110
Threads: 20
Joined: Jan 2011
Reputation:
0
Mmm Would this work for my rent weapon system?
Thanks for the response btw.