What to do with this now???
#4

PHP код:
forward ZoneTimer();
public 
ZoneTimer()
{
    for(new 
i=0sizeof(ZoneInfo); i++) // loop all zones
    
{
        if(
ZoneAttacker[i] != -1// zone is being attacked
        
{
            if(
GetPlayersInZone(iZoneAttacker[i]) >= 1// there must be at least 1 attacker left
            
{
                
ZoneAttackTime[i]++;
                if(
ZoneAttackTime[i] == TAKEOVER_TIME// zone has been under attack for enough time and attackers take over the zone
                
{
                    
GangZoneStopFlashForAll(ZoneID[i]);
                    
ZoneInfo[i][zTeam] = ZoneAttacker[i];
                    
GangZoneShowForAll(ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); // update the zone color for new team
                    
ZoneAttacker[i] = -1;
                }
            }
            else 
// attackers failed to take over the zone
            
{
                
GangZoneStopFlashForAll(ZoneID[i]);
                
ZoneAttacker[i] = -1;
            }
        }
    }

That's a part, okay? If u want more, tell me!

@Darnell

What do you mean with "combine"??
Reply


Messages In This Thread
What to do with this now??? - by samtey - 30.08.2011, 17:30
Re: What to do with this now??? - by Darnell - 30.08.2011, 18:05
Re : What to do with this now??? - by Naruto_Emilio - 30.08.2011, 18:05
AW: What to do with this now??? - by samtey - 30.08.2011, 18:15
Re : What to do with this now??? - by Naruto_Emilio - 31.08.2011, 02:02
AW: What to do with this now??? - by samtey - 31.08.2011, 10:34
Re: What to do with this now??? - by XwawawaX - 31.08.2011, 12:33

Forum Jump:


Users browsing this thread: 2 Guest(s)