28.02.2015, 01:46
Certo, mas caso tenha um timer por jogador, vocк deverб usar KillTimer quando ele desconectar-se.
Exemplo:
#Edit, como xCR7 mencionou, isto vale apenas se o timer tiver repetiзгo.
Exemplo:
Code:
#include <a_samp>
new Timer1[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Timer1[playerid] = SetTimerEx("Timer", 5000, true, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(Timer1[playerid]);
return 1;
}


