24.03.2011, 22:37
Yep then let's say, make a copy of your current 'public OnPlayerconnect...' and name it something like OnPlayerConnect2 and in OnPlayerConnect make a timer that calls OnPlayerConnect2 BUT do NOT use SETTIMER BUT INSTEAD USE SetTimerEx("OnPlayerConnect2",5000,0,"d",playerid) ;
example:
example:
pawn Код:
public OnPlayerConnect(playerid)
{
SetTimerEx("OnPlayerConnect2",5000,0,"d",playerid);
return 1;
}
forward OnPlayerConnect2(playerid);
public OnPlayerConnect2(playerid)
{
//your original onplayerconnect code
}