13.04.2015, 01:34
Код:
stock SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
if(PlayerInfo[playerid][pTut] == 0)
{
SetPlayerPos(playerid, -133.2492,1124.9255,20.9518);
SetPlayerCameraPos(playerid, -136.1206,1124.8572,27.1411);
SetPlayerCameraLookAt(playerid, -144.9004,1124.2347,21.4658);
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid, D_Sexo, DIALOG_STYLE_MSGBOX,"> Escolha seu Sexo <","Escolha seu Sexo:","Masculino","Feminino");
return SpawnPlayer(playerid);
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SetPVarInt(playerid, "ReadAdminWarning", 1);
SetPVarInt(playerid, "ReadAdminChat", 1);
SetPVarInt(playerid, "ReadSystemWarning", 1);
}
SetSpawnInfo(playerid, PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2], 1.0, -1, -1, -1, -1, -1, -1);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
return 1;
}


