[Help] Gang Zones/Wars
#1

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.
Reply
#2

I cannot deem what you've made out of that topic, please post your code here.
Reply
#3

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();

Reply
#4

You're sure you have the "GangZoneStopFlashForAll(ZoneID[i]);"'s in the script correctly?
Reply
#5

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 ?
Reply
#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
#7

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.
Reply
#8

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.
Reply
#9

Problem Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)