pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == GTurf)
{
if(tCP[Grove] == gTeam[playerid]) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already captured by your team");
if(UnderAttack[Grove] == 1) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already being taken over!");
UnderAttack[Grove] = 1;
timer[playerid][Grove] = SetTimerEx("G",60000,false,"i", playerid);
SendClientMessage(playerid, 0xFFFB00FF,"You're Capturing this zone! Wait here for 60 Seconds!");
GangZoneFlashForAll(Grove,GetPlayerColor(playerid));
new string[128];
format(string, sizeof(string),"[ATTENTION]: Grove Gangzone is Being taken Over!");
SendClientMessageToAll(0xF50A0AFF,string);
iCP[playerid] = Grove;
}
if(checkpointid == BTurf)
{
if(tCP[Ballas] == gTeam[playerid]) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already captured by your team");
if(UnderAttack[Ballas] == 1) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already being taken over!");
UnderAttack[Ballas] = 1;
timer[playerid][Ballas] = SetTimerEx("B",60000,false,"i", playerid);
SendClientMessage(playerid, 0xFFFB00FF,"You're Capturing this zone! Wait here for 60 Seconds!");
GangZoneFlashForAll(Ballas,GetPlayerColor(playerid));
new string[128];
format(string, sizeof(string),"[ATTENTION]: Ballas Gangzone is Being taken Over!");
SendClientMessageToAll(0xF50A0AFF,string);
iCP[playerid] = Ballas;
}
if(checkpointid == ATurf)
{
if(tCP[Aztecas] == gTeam[playerid]) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already captured by your team");
if(UnderAttack[Aztecas] == 1) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already being taken over!");
UnderAttack[Aztecas] = 1;
timer[playerid][Aztecas] = SetTimerEx("A",60000,false,"i", playerid);
SendClientMessage(playerid, 0xFFFB00FF,"You're Capturing this zone! Wait here for 60 Seconds!");
GangZoneFlashForAll(Aztecas,GetPlayerColor(playerid));
new string[128];
format(string, sizeof(string),"[ATTENTION]: Aztecas Gangzone is Being taken Over!");
SendClientMessageToAll(0xF50A0AFF,string);
iCP[playerid] = Aztecas;
}
if(checkpointid == VTurf)
{
if(tCP[Vagos] == gTeam[playerid]) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already captured by your team");
if(UnderAttack[Vagos] == 1) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already being taken over!");
UnderAttack[Vagos] = 1;
timer[playerid][Vagos] = SetTimerEx("V",60000,false,"i", playerid);
SendClientMessage(playerid, 0xFFFB00FF,"You're Capturing this zone! Wait here for 60 Seconds!");
GangZoneFlashForAll(Vagos,GetPlayerColor(playerid));
new string[128];
format(string, sizeof(string),"[ATTENTION]: Vagos Gangzone is Being taken Over!");
SendClientMessageToAll(0xF50A0AFF,string);
iCP[playerid] = Vagos;
}
if(checkpointid == PTurf)
{
if(tCP[Police] == gTeam[playerid]) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already captured by your team");
if(UnderAttack[Police] == 1) return SendClientMessage(playerid, 0xF50A0AFF,"This zone is already being taken over!");
UnderAttack[Police] = 1;
timer[playerid][Police] = SetTimerEx("P",60000,false,"i", playerid);
SendClientMessage(playerid, 0xFFFB00FF,"You're Capturing this zone! Wait here for 60 Seconds!");
GangZoneFlashForAll(Police,GetPlayerColor(playerid));
new string[128];
format(string, sizeof(string),"[ATTENTION]: Police Gangzone is Being taken Over!");
SendClientMessageToAll(0xF50A0AFF,string);
iCP[playerid] = Police;
}
return 1;
}