14.03.2018, 15:45
PHP код:
public OnPlayerSpawn(playerid)
{
new fracspawn;
fracspawn = pl[playerid][pLeader];
SetPlayerSkin(playerid, pl[playerid][pChar]);
SetPlayerScore(playerid,pl[playerid][pLevel]);
InitLockDoors(playerid);
TextDrawHideForPlayer(playerid,SpeedShow[playerid]);
TextDrawHideForPlayer(playerid,Benzin[playerid]);
if(fracspawn >0)
{
setpos(playerid,fl[fracspawn][fSpawnx],fl[fracspawn][fSpawny],fl[fracspawn][fSpawnz]);
setint(playerid,fl[fracspawn][fInt]);
setworld(playerid,fl[fracspawn][fWorld]);
GivePlayerWeapon(playerid,fl[fracspawn][fGun1],fl[fracspawn][fAmmo1]);
}
else
{
setint(playerid,4);
setworld(playerid,0);
setpos(playerid,-1435.75, -652.664, 1054.94);
return 1;
}
return 1;
}