Making GangZones To TakeOver ..
#2

Start off with 3 people dying.
pawn Код:
new deaths = 0;
Check if these people died in the area that you want them to die
Getplayerpos or IsPlayerInrangeOfPoint
In OnplayerDeath,
pawn Код:
public OnPlayerDeath(...)
{
(Might want to check if a player is in a specific team here)
{
      if(Did the player die in your area)
      {
             deaths= deaths +1
             if(deaths == 3)
             {
                  SetTimerEx(EndTimer, ....);
                  SetTimerEx(FlashTimer, ....);
              }
      }
      return 1;
}
}
So now you can put a timer that makes the gangzones flash, change the color every second, or something like that.
Don't forget to add a timer that counts to 2 minutes.
pawn Код:
public FlashTimer(...)
{
       Change the color;
       SetTimerEx(FlashTimerTwo,...);
       return 1;
}

public FlashTimerTwo(...)
{
       Change the color;
       SetTimerEx(FlashTimer,...);
       return 1;
}
And at the end of the 2 minute timer, you change the gangzone to the team that took over.
pawn Код:
public endtimer(...)
{
       KillTimer(FlashTimer);
       KillTimer(FlashTimerTwo);
       Change the color if you want to
       return 1;
}
Let me know If you have any questions
Reply


Messages In This Thread
Making GangZones To TakeOver .. - by KingyKings - 02.07.2013, 15:58
Re: Making GangZones To TakeOver .. - by shadowdog - 02.07.2013, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)