23.08.2015, 22:00
You are probably speaking about a callback which is called like a OnPlayerConnect callback but delayed, right? You can do something such as:
pawn Код:
new PlayerConnectTimer[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
PlayerConnectTimer[playerid] = SetTimerEx("DelayedConnect", 5000, false, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason) return KillTimer(PlayerConnectTimer[playerid]);
forward DelayedConnect(playerid);
public DelayedConnect(playerid)
{
PlayerConnectTimer[playerid] = 0;
return 1;
}