Capture Gangzone Little suggestion.
#1

Hello everyone.I get one small problem on my capture gangzone script.When player from Team 1 capturing territory.Player with Team 2 enter to his CP and how he enter he fast escape from CP and capturing stopped.I don`t know how to fix it.Can anyone helps me??

Code:
pawn Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
    if(checkpointid == LSDPCP)
    {
        if(UnderAttack[playerid] == 1)
        {
            GangZoneStopFlashForAll(LSDPZone);
            UnderAttack[playerid] = 0;
            KillTimer(Timer1);
            SendClientMessageToAll(0xFFFFFFFF, "{00D5FF}[TURF] "embed_white"Capturing turf {FFD900}Pershing Square "embed_white" has been stopped!");
        }
    }
    //SetCameraBehindPlayer(playerid);
    return 1;
}
Reply
#2

Anyone can helps me?
Reply
#3

You can create a variable (i.e. new BeingCaptured;) and set it to 1 when a gangzone is being captured, so you can prevent players from capturing a gangzone that is already being captured.
Reply
#4

Try checking the teams, I don't see you checking them so this means anyone can stop the attack.
I'm not sure how to do it tho :\
Reply
#5

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
You can create a variable (i.e. new BeingCaptured;) and set it to 1 when a gangzone is being captured, so you can prevent players from capturing a gangzone that is already being captured.
ye ye ye...Thanks for idea.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)