24.10.2016, 18:49
Why you don't pass the id of this timer into a variable? I mean.
PHP код:
new gRapeTimer[MAX_PLAYERS];
// initialize
gRapeTimer[playerid] = SetTimerEx("RapeEffect", RapeTimer, true, "i", playerid);
// to kill this timer
KillTimer(gRapeTimer[playerid]);
// Don't forget to clear the value when user leaves the server.
public OnPlayerDisconnect(playerid)
{
...
KillTimer(gRapeTimer[playerid]);
gRapeTimer = -1;
}