14.04.2010, 15:15 
	
	
	pawn Код:
public OnPlayerSpawn(playerid)
{ if(pdebug == 1){printf("[DEBUG] OnPlayerSpawn(%d)", playerid);}
// Normal stuff:
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
StopSoundForPlayer(playerid);
gTeam[playerid] = PlayerInfo[playerid][pTeam]; // Set the player in a team.
SetPlayerSpawn(playerid); // Set the player's spawn place.
SetPlayerWeapons(playerid); // Set the player's spawn weapons.
SetPlayerTeamColor(playerid); // Set the player's spawn color.
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
// To sync mission checkpoints.
if(CheckpointBusyX != 0.0 && CheckpointBusyY != 0.0 && CheckpointBusyZ != 0.0){SetPlayerCheckpoint(playerid, CheckpointBusyX, CheckpointBusyY, CheckpointBusyZ, CheckpointBusyS);}
if(PlayerLoggedIn[playerid] == 0){GameTextForPlayer(playerid, "~w~Welcome,~n~In order to play you need to create an account, type ~n~~r~/register (password)~w~ to register.", 20000, 4);} // did stolen it from PEN :D
return 1;
}


