06.12.2009, 10:23
ATTENTION: This is only for GodFather Mode
Are you tired of OnPlayerSpawn Bug because he's called twice ?
Are you tired of OnPlayerSpawn Bug because he's called twice ?
pawn Code:
static bool: ONP_Debug[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(ONP_Debug[playerid]) return true;
ONP_Debug[playerid] = true;
SetTimerEx("ResetSpawn",1000,false,"d",playerid);
// Rest of OnPlayerSpawn
}
forward ResetSpawn(playerid);
public ResetSpawn(playerid)
{
if(ONP_Debug[playerid]) ONP_Debug[playerid] = false;
return true;
}