[Tutorial] Easiest Way To Create Capture Zones
#7

You can use following to detect that if its already captured
pawn Code:
new tCP[30];
new iCP[30];
Example Code:
pawn Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
  if(checkpointid == CP[UnityStation])
   {
     if(tCP[UnityStation] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[UnityStation] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[UnityStation] = 1;
     timer[playerid][UnityStation] = SetTimerEx("CaptureZone",30000,false,"i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     new string[128];
     format(string, sizeof(string),"[ATTENTION]: Unity Station is Being taken Over!");
     SendClientMessageToAll(COLOR_RED,string);
     iCP[playerid] = UnityStation;
   }
Reply


Messages In This Thread
Easiest Way To Create Capture Zones - by Nirzor - 22.06.2012, 17:59
Re: Easiest Way To Create Capture Zones - by [GF]Logic - 22.06.2012, 21:41
Re: Easiest Way To Create Capture Zones - by cJMaster_ - 22.06.2012, 21:45
Re: Easiest Way To Create Capture Zones - by Nirzor - 23.06.2012, 05:30
Re: Easiest Way To Create Capture Zones - by Littlehelper - 23.06.2012, 07:25
Re: Easiest Way To Create Capture Zones - by Nirzor - 23.06.2012, 07:41
Re: Easiest Way To Create Capture Zones - by Jarnu - 26.06.2012, 08:42
Re: Easiest Way To Create Capture Zones - by Nirzor - 26.06.2012, 08:44
Re: Easiest Way To Create Capture Zones - by JimmyCh - 25.06.2013, 18:56
Re: Easiest Way To Create Capture Zones - by K3 - 28.06.2013, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)