17.06.2018, 22:30
Quote:
No it won't, the first one is hell fine, Becoz he got SetTimerEx(*Code*, playerid)
The playerid in it will kill only the Playerid... |
Simply add this:
Код:
public OnPlayerDisconnect(playerid, reason) { KillTimer(killtimer[playerid]); killtimer[playerid] = -1; return 1; }
Otherwise add this at the top of your script:
Код:
new killtimer[MAX_PLAYERS];
You shouldn't give to the players the possibility to spam that command because they can start many timers and I guess you don't want that
So add a small check under your command