LeaveDynamicArea
#1

Helo guys
i have made this code so when the team is capturing when a player leave dynamic area if the count of team is less thean two members then the capture should stop but if its two or more then it should continue


but my problem is that when there is three players if a player leaves the capturing stop for the other two also

PHP код:

    
if(areaid == MariaBeach)
    {
        if(
zUnderAttack[MariaBeach] == 1)
        {
            new 
count;
            for(new 
i=0iMAX_PLAYERSi++)
            {
                if(
IsPlayerInDynamicArea(iMariaBeach) && gTeam[i] == gTeam[playerid])
                
count++;
                if(
count == 1)
                {
                    
zUnderAttack[MariaBeach] = 0;
                    
GangZoneStopFlashForAll(GangZone[MariaBeach]);
                    
KillTimer(tBarTimer[i]);
                    
KillTimer(ZTimer[i][MariaBeach]);
                    
captureTime[i]= 0;
                    
PlayerTextDrawHide(iBar);
                    
SendClientMessage(i, -1,"not enough members turf cancled.");
                }
            }
        }
        return 
1;
    } 
thanks in advance
Reply


Messages In This Thread
LeaveDynamicArea - by SalmaN97 - 02.08.2015, 00:31
Re: LeaveDynamicArea - by xVIP3Rx - 02.08.2015, 01:17
Re: LeaveDynamicArea - by SalmaN97 - 02.08.2015, 03:10
Re: LeaveDynamicArea - by jamesbond007 - 02.08.2015, 04:04
Re: LeaveDynamicArea - by SalmaN97 - 02.08.2015, 04:41
Re: LeaveDynamicArea - by jamesbond007 - 02.08.2015, 05:03
Re: LeaveDynamicArea - by SalmaN97 - 02.08.2015, 05:12
Re: LeaveDynamicArea - by xVIP3Rx - 02.08.2015, 05:51
Re: LeaveDynamicArea - by SecretBoss - 02.08.2015, 05:56
Re: LeaveDynamicArea - by SalmaN97 - 02.08.2015, 07:10

Forum Jump:


Users browsing this thread: 1 Guest(s)