SA-MP Forums Archive
Spawn help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn help (/showthread.php?tid=578843)



Spawn help - KillerDVX - 22.06.2015

Hi guys,

I wanted to make when a survivor's dead, he spawns as a zombie :

PHP код:
if(gTeam[playerid] == TEAM_SURVIVANT)
    {
        if(
GhostIsland == 1)
        {
           
SetSpawnInfo(playerid2230768.1005,-3203.6111,11.3624342.527449999994000);
           
gTeam[playerid] = TEAM_ZOMBIE;
           
Team[playerid] = 2;
        }
        else if(
DesertZombies == 1)
        {
           
SetSpawnInfo(playerid2230, -315.9197,2681.9500,62.6241,255.959249999994000);
           
gTeam[playerid] = TEAM_ZOMBIE;
           
Team[playerid] = 2;
        }
        else if(
FarmZombie == 1)
        {
           
SetSpawnInfo(playerid2230169.3541,105.7299,3.8842,174.766349999994000);
           
gTeam[playerid] = TEAM_ZOMBIE;
           
Team[playerid] = 2;
        }
        return 
1;
        } 
But it doesn't work..
.
He spawns as a survivor..