26.06.2011, 23:23
Well, OnGameModeExit doesn't have playerid defined. So you cannot use it there.
If you still want to do something, Try this method:
But i think, putting SetPlayerTeamFromClass would barely do anything there..
If you still want to do something, Try this method:
pawn Код:
public OnGameModeExit()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
// Put your hings here and replace "playerid" with "i".
}
}
}

