Capture zone can be captured again bug help
#1

BUG happens for This SUPPLY DEPO CHECKPOINT so it can be captured again even if it was captured.The First Post Checkpoint works fine.
pawn Код:
//===========================OnPlayerEnterDynamicCP=============================
forward OnPlayerEnterDynamicCP(playerid, checkpointid);//abandoned Post
public OnPlayerEnterDynamicCP(playerid, checkpointid)//abandoned Post
{
//Supply Depo
if(checkpointid == CP[POST])
    {
        if(UnderAttack[POST] == 0)
        {
            if(tCP[POST] != pTeam[POST])
            {
                CountVar[playerid][POST] = 25;
                ActivePOST(playerid);

            } else return SendClientMessage(playerid, COLOR_RED,"*This zone is already captured by your team!");
        } else return CaptureZoneMessage(playerid, 2);
    }

//BUG happens for This SUPPLY DEPO CHECKPOINT so it can be captured again even if it was captured.The First Post Checkpoint works fine.

else if (checkpointid == CP[SUPPLYDEPO])
    {
        if(UnderAttack[SUPPLYDEPO] == 0)
        {
            if(tCP[SUPPLYDEPO] != pTeam[SUPPLYDEPO])
            {
                CountVar[playerid][SUPPLYDEPO] = 25;
                ActiveSUPPLYDEPO(playerid);
               
            } else  return SendClientMessage(playerid, COLOR_RED,"*This zone is already captured by your team!");
        } else return CaptureZoneMessage(playerid, 2);
    }
return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)