onPlayerSpawn
#4

PHP код:
public OnPlayerSpawn(playerid)
{
    new 
fracspawn;
    
fracspawn pl[playerid][pLeader];
    
SetPlayerSkin(playeridpl[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.6641054.94);
        return 
1;
    }
    return 
1;

check for fraction (leaders) - and SPAWN in Las Venturas
Reply


Messages In This Thread
onPlayerSpawn - by EvgeniyHostel1992 - 13.03.2018, 19:37
Re: onPlayerSpawn - by PepsiCola23 - 13.03.2018, 19:54
Re: onPlayerSpawn - by EvgeniyHostel1992 - 13.03.2018, 22:07
Re: onPlayerSpawn - by EvgeniyHostel1992 - 14.03.2018, 15:45
Re: onPlayerSpawn - by EvgeniyHostel1992 - 14.03.2018, 17:16
Re: onPlayerSpawn - by Maximun - 14.03.2018, 18:04
Re: onPlayerSpawn - by EvgeniyHostel1992 - 14.03.2018, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)