Random team spawns!
#1

Hi I trying to make a random team spawns but When a SWAT Spawn they will spawn him at Army location's and like others skins too.. why

OnPlayerSpawn
PHP код:
    if(gTeam[playerid] == PoliceTeam(GetPlayerSkin(playerid)) && FBII(GetPlayerSkin(playerid)))
    {
        new 
RandomSpawnP random(sizeof(RandomSpawnPolice));
        
SetPlayerPos(playeridRandomSpawnPolice[RandomSpawnP][0], RandomSpawnPolice[RandomSpawnP][1], RandomSpawnPolice[RandomSpawnP][2]);
        
SetPlayerFacingAngle(playeridRandomSpawnPolice[RandomSpawnP][3]);
    }
    if(
gTeam[playerid] == CIA(GetPlayerSkin(playerid)))
    {
        new 
RandomSpawnC random(sizeof(RandomSpawnCIA));
        
SetPlayerPos(playeridRandomSpawnCIA[RandomSpawnC][0], RandomSpawnCIA[RandomSpawnC][1], RandomSpawnCIA[RandomSpawnC][2]);
        
SetPlayerFacingAngle(playeridRandomSpawnCIA[RandomSpawnC][3]);
    }
    if(
gTeam[playerid] == Army(GetPlayerSkin(playerid)))
    {
        new 
RandomSpawnA random(sizeof(RandomSpawnArmy));
        
SetPlayerPos(playeridRandomSpawnArmy[RandomSpawnA][0], RandomSpawnArmy[RandomSpawnA][1], RandomSpawnArmy[RandomSpawnA][2]);
        
SetPlayerFacingAngle(playeridRandomSpawnArmy[RandomSpawnA][3]);
    }
    if(
gTeam[playerid] == SWAT(GetPlayerSkin(playerid)))
    {
        new 
RandomSpawnS random(sizeof(RandomSpawnSWAT));
        
SetPlayerPos(playeridRandomSpawnSWAT[RandomSpawnS][0], RandomSpawnSWAT[RandomSpawnS][1], RandomSpawnSWAT[RandomSpawnS][2]);
        
SetPlayerFacingAngle(playeridRandomSpawnSWAT[RandomSpawnS][3]);
    } 
Reply


Messages In This Thread
Random team spawns! - by Thanks - 30.07.2018, 13:36
Re: Random team spawns! - by Thanks - 30.07.2018, 17:14
Re: Random team spawns! - by Dawkin - 30.07.2018, 17:15
Re: Random team spawns! - by Thanks - 30.07.2018, 17:17
Re: Random team spawns! - by Dawkin - 30.07.2018, 17:21
Re: Random team spawns! - by NaS - 30.07.2018, 17:55
Re: Random team spawns! - by Thanks - 30.07.2018, 19:16

Forum Jump:


Users browsing this thread: 2 Guest(s)