[Help] Gang Zones/Wars (+Rep) -
Arxalan - 04.01.2015
hello . i created the gang zones from the following link :
https://sampforum.blast.hk/showthread.php?tid=276352
I used the Zone Attack #1 in my Script and then i made new command /war and added ZoneTimer(); in it. Now when i use /war on other gang zones it started to flashing but the time never ends and the zone never stop flashing and when i get out of that zone it stills flashes.
Re: [Help] Gang Zones/Wars -
CalvinC - 04.01.2015
I cannot deem what you've made out of that topic, please post your code here.
Re: [Help] Gang Zones/Wars -
Arxalan - 04.01.2015
I copy and paste the exact code from the following link :
https://sampforum.blast.hk/showthread.php?tid=276352
But as there aren't any discussion about Teams so i made a pickup for a team then i use CMD:war and you can see the following :
PHP код:
CMD:war(playerid , params[])
{
ZoneTimer();
}
Re: [Help] Gang Zones/Wars -
CalvinC - 04.01.2015
You're sure you have the "GangZoneStopFlashForAll(ZoneID[i]);"'s in the script correctly?
Re: [Help] Gang Zones/Wars -
Arxalan - 04.01.2015
Yes ,
I made another new FS and copied and pasted the exact commands from tutorial now how can a player join the team and how can he attack on specific zone/territory ?
Re: [Help] Gang Zones/Wars -
CalvinC - 04.01.2015
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.
Re: [Help] Gang Zones/Wars -
Arxalan - 04.01.2015
I used Pickup and use SetPlayerTeam on PlayerPickup but can't do war . I want that when player enter into enemy territory he/she can start turfing by /turf or /war.
Re: [Help] Gang Zones/Wars -
CalvinC - 04.01.2015
Try removing the "GetPlayersInZone(i, Teams[t]) >= MIN_MEMBERS_TO_START_WAR"'s, and put it under your command instead of a local function, unless it's used elsewhere.
Re: [Help] Gang Zones/Wars -
Arxalan - 04.01.2015
Problem Solved.