SA-MP Forums Archive
REQUEST - 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: REQUEST (/showthread.php?tid=373683)



REQUEST - rumen98 - 31.08.2012

Hi i start one gamemode but i need team balance
the teams is
Zombie
and
Human
i need on player spawn to spawn on 3 zombies 1 human who can help me
skype:Rumen98
im using this

PHP код:
  if(PlayerInfo[playerid][Infect] == 1)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s е спалнът като зомби"pName);
        
SendClientMessageToAll(redString);
        
SetPlayerColor(playerid,red);
        return 
0;
    }
    else if(
PlayerInfo[playerid][Infect] == 0)
    {
        new 
pName[MAX_PLAYER_NAME], String[128];
        
GetPlayerName(playeridpName24);
        
format(Stringsizeof(String), "%s е спалнът като човек"pName);
        
SendClientMessageToAll(greenString);
         
Timer3 SetTimer("SetMyRank"5000true);
        
SetPlayerColor(playerid,blue);
        return 
0;
    } 
How can i make this then have only infect 0 to spawn infect 1 ?