LeaveDynamicArea
#8

pawn Код:
if(areaid == MariaBeach)
    {
        if(zUnderAttack[MariaBeach] == 1)
        {
            new count;
            for(new i; i< MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    format(string, sizeof(string), "%d is connected", i), SendClientMessageToAll(-1, string);
                    if(IsPlayerInDynamicArea(i, MariaBeach))
                    {
                        format(string, sizeof(string), "%d is in the dynamic area", i), SendClientMessageToAll(-1, string);
                        if(gTeam[i] == gTeam[playerid])
                        {
                            format(string, sizeof(string), "%d is on the same team", i), SendClientMessageToAll(-1, string);
                           
                            count++;
                        }
                    }
                }
            }
            format(string, sizeof(string), "%d players in area", count), SendClientMessageToAll(-1, string);

            if(count < 2)
            {
                zUnderAttack[MariaBeach] = 0;
                GangZoneStopFlashForAll(GangZone[MariaBeach]);
                KillTimer(tBarTimer[i]);
                KillTimer(ZTimer[i][MariaBeach]);
                captureTime[i]= 0;
                PlayerTextDrawHide(i, Bar);
                SendClientMessage(i, -1,"not enough members turf cancled.");
            }
        }
        return 1;
    }
Tell me what does it say on the mainchat.
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)