11.05.2016, 08:43
Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerSpectating(playerid, 0);
AddPlayerClass(PlayerInfo[playerid][Skin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 0.15, 0, 0, 0, 0, 0, 0, 0);
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
if(PlayerInfo[playerid][Certificated] == 1) // if it's the first connection of the new player, previously a certificator created his account
{
SetPlayerPos(playerid, 1642.4110, -2335.0168, -2.6797); // ls airport
PlayerInfo[playerid][Certificated] = 2; // he won't respawn at the airport anymore, now in hist last position
}
SetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
TogglePlayerControllable(playerid, 1);
return 1;
}

