[Help] Gang Zones/Wars
#6

I believe you automatically attack it when there's 2+ players from the same team in another team's zone.
To set a players team, use:
pawn Код:
SetPlayerTeam(playerid, teamid);
Replace teamid with the teams in the topic.
Grove: 1
Ballas: 2
Vagos: 3

pawn Код:
public OnPlayerSpawn(playerid)
{
    switch(random(3))
    {
        case 0: SetPlayerTeam(playerid, 1);
        case 1: SetPlayerTeam(playerid, 2);
        case 2: SetPlayerTeam(playerid, 3);
    }
    return 1;
}
Example of it in a switch, making it spawn the player in a random team of the 3.
Reply


Messages In This Thread
[Help] Gang Zones/Wars (+Rep) - by Arxalan - 04.01.2015, 05:56
Re: [Help] Gang Zones/Wars - by CalvinC - 04.01.2015, 07:33
Re: [Help] Gang Zones/Wars - by Arxalan - 04.01.2015, 07:39
Re: [Help] Gang Zones/Wars - by CalvinC - 04.01.2015, 07:53
Re: [Help] Gang Zones/Wars - by Arxalan - 04.01.2015, 08:21
Re: [Help] Gang Zones/Wars - by CalvinC - 04.01.2015, 08:49
Re: [Help] Gang Zones/Wars - by Arxalan - 04.01.2015, 12:14
Re: [Help] Gang Zones/Wars - by CalvinC - 04.01.2015, 12:31
Re: [Help] Gang Zones/Wars - by Arxalan - 04.01.2015, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)