GangZoneFlashForAll Problem
#1

Code
pawn Код:
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("SetZone",30000,false,"i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[UnityStation], COLOR_PINK);
     iCP[playerid] = UnityStation;
   }
  if(checkpointid == CP[CluckinBell])
   {
     if(tCP[CluckinBell] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[CluckinBell] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[CluckinBell] = 1;
     timer[playerid][CluckinBell] = SetTimerEx("SetZone",30000, false, "i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[CluckinBell], COLOR_PINK);
     iCP[playerid] = CluckinBell;
   }
  if(checkpointid == CP[Gym])
   {
     if(tCP[Gym] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[Gym] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[Gym] = 1;
     timer[playerid][Gym] = SetTimerEx("SetZone",30000, false, "i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[Gym], COLOR_PINK);
     iCP[playerid] = Gym;
   }
  if(checkpointid == CP[HOTEL])
   {
     if(tCP[HOTEL] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[HOTEL] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[HOTEL] = 1;
     timer[playerid][HOTEL] = SetTimerEx("SetZone",30000, false, "i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[HOTEL], COLOR_PINK);
     iCP[playerid] = HOTEL;
   }
  if(checkpointid == CP[CrackBin])
   {
     if(tCP[CrackBin] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[CrackBin] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[CrackBin] = 1;
     if(UnderAttack[UnityStation] == 1) return SendClientMessage(playerid, COLOR_RED,"Zone is already being taken over!");
     timer[playerid][CrackBin] = SetTimerEx("SetZone",30000, false, "i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[CrackBin], COLOR_PINK);
     UnderAttack[UnityStation] = 1;
     iCP[playerid] = CrackBin;
   }
  if(checkpointid == CP[FireDept])
   {
     if(tCP[CrackBin] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
     if(UnderAttack[FireDept] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
     UnderAttack[FireDept] = 1;
     timer[playerid][FireDept] = SetTimerEx("SetZone",30000, false,"i", playerid);
     SendClientMessage(playerid, COLOR_YELLOW,"You're Capturing this zone! Wait here for 30 Seconds!");
     GangZoneFlashForAll(CP[FireDept], COLOR_PINK);
     iCP[playerid] = FireDept;
   }
   return 1;
}
when i enter the CP gang zone doesn't flash why?
Reply


Messages In This Thread
GangZoneFlashForAll Problem - by Jarnu - 24.06.2012, 07:53
Re: GangZoneFlashForAll Problem - by Grand_Micha - 24.06.2012, 07:58
Re: GangZoneFlashForAll Problem - by [MM]RoXoR[FS] - 24.06.2012, 08:19
Re: GangZoneFlashForAll Problem - by Jarnu - 24.06.2012, 08:23
Re: GangZoneFlashForAll Problem - by Randy More - 24.06.2012, 08:29
Re: GangZoneFlashForAll Problem - by Jarnu - 24.06.2012, 08:37

Forum Jump:


Users browsing this thread: 2 Guest(s)