Checkpointid
#7

So how would you put it here?
pawn Код:
else if(checkpointid == BigEarCP || checkpointid ==  SnakeCP || checkpointid ==  TeeMotelCP || checkpointid ==  OilCP)
    {
        new string[128];
        if(GangInfo[checkpointid][gAttacked] == 1) return SendClientMessage(playerid, C_RED, "The zone is being captured!");
        if(GangInfo[checkpointid][gOwner] == gTeam[playerid]) return SendClientMessage(playerid, C_LBLUE, "Your team owns this zone.");
       
        GangInfo[checkpointid][gAttacked] = 1;
       
        if(IsPlayerInDynamicArea(playerid, BigEarArea))
        {
            GangZoneFlashForAll(BigEarZone, GetPlayerGangColor(playerid));
            format(string, sizeof(string), "%s", "BigEarZone");
        }
        else if(IsPlayerInDynamicArea(playerid, SnakeArea))
        {
            GangZoneFlashForAll(SnakeZone, GetPlayerGangColor(playerid));
            format(string, sizeof(string), "%s", "SnakeZone");
        }
        else if(IsPlayerInDynamicArea(playerid, TeeMotelArea))
        {
            GangZoneFlashForAll(TeeMotelZone, GetPlayerGangColor(playerid));
            format(string, sizeof(string), "%s", "TeeMotelZone");
        }
        else if(IsPlayerInDynamicArea(playerid, OilArea))
        {
            GangZoneFlashForAll(OilZone, GetPlayerGangColor(playerid));
            format(string, sizeof(string), "%s", "OilZone");
        }
       
        PlayerCount[playerid] = 30;
        PlayerCountTimer[playerid] = SetTimerEx("GangCount", 1000, true, "iis[128]", playerid,  checkpointid, string);
        format(string, sizeof(string), "[ZONE] %s is being taken over!", GetZoneName(checkpointid));
        SendClientMessageToAll(C_LGREEN, string);
    }
Reply


Messages In This Thread
Checkpointid - by Dan. - 28.07.2012, 17:00
Re: Checkpointid - by ReVo_ - 28.07.2012, 17:25
Re: Checkpointid - by Dan. - 28.07.2012, 19:22
Re: Checkpointid - by SuperViper - 28.07.2012, 19:58
Re: Checkpointid - by Dan. - 28.07.2012, 20:17
Re: Checkpointid - by Arca - 28.07.2012, 20:33
Re: Checkpointid - by Dan. - 29.07.2012, 07:55
Re: Checkpointid - by [MM]RoXoR[FS] - 29.07.2012, 08:42
Re: Checkpointid - by Dan. - 29.07.2012, 08:50
Re: Checkpointid - by [MM]RoXoR[FS] - 29.07.2012, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)