24.06.2012, 07:53
Code
when i enter the CP gang zone doesn't flash why?
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;
}