What to do with this now???
#1

Hi all!

Wasn't here a longer time, I know!^^ But now I got a question:

I was asking a friend following:

I want gangwar messages, like: The Vagos are attacking our hood in [FOR EXAMPLE GANTON]...
We have provoked a gangwar against the Grove Street in [for example GANTON]....

He sent me them, but he also sent me the whooooole attacking system... I already got an attacking system and dunno what to do now....

Any help please?
Reply
#2

Try combining them ?
Reply
#3

Post your code so we can give.... then i can help you
Reply
#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
#5

What are using gTeam or what.
Reply
#6

Yes, gTeam... It's an array, can u help?

Or anybody else??
Reply
#7

You should just quit.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)