26.12.2013, 06:51
pawn Код:
static playertimer[MAX_PLAYERS];
#define TimerInterval 5000 //Type your interval here (MS)
#define reapiting 1 //You want to timer repeat? use 1 else 0
public OnPlayerConnect(playerid)
{
playertimer[playerid] = SetTimerEx("matspick", TimerInterval, reapiting, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(playertimer[playerid]);
return 1;
}