03.02.2014, 20:58
Why It Doesn't Send Me Any Message in this?
pawn Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(!IsPlayerInDynamicCP(playerid, Grove))
{
if(iCP[Police] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, "You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Grove);
SendClientMessageToAll(0x00FF007A, "Grove GangZone was not taken over");
KillTimer(timer[playerid][Grove]);
Checkpoint[playerid] = 0;
UnderAttack[Grove] = 0;
}
}
if(!IsPlayerInDynamicCP(playerid, Ballas))
{
if(iCP[Ballas] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, " You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Ballas);
SendClientMessageToAll(0x00FF007A, "Ballas GangZone was not taken over");
KillTimer(timer[playerid][Ballas]);
Checkpoint[playerid] = 0;
UnderAttack[Ballas] = 0;
}
}
if(!IsPlayerInDynamicCP(playerid, Aztecas))
{
if(iCP[Aztecas] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, " You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Aztecas);
SendClientMessageToAll(0x00FF007A, "Aztecas GangZone was not taken over");
KillTimer(timer[playerid][Aztecas]);
Checkpoint[playerid] = 0;
UnderAttack[Aztecas] = 0;
}
}
if(!IsPlayerInDynamicCP(playerid, Vagos))
{
if(iCP[Vagos] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, " You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Vagos);
SendClientMessageToAll(0x00FF007A, "Vagos GangZone was not taken over");
KillTimer(timer[playerid][Vagos]);
Checkpoint[playerid] = 0;
UnderAttack[Vagos] = 0;
}
}
if(!IsPlayerInDynamicCP(playerid, Police))
{
if(iCP[Police] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, " You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Police);
SendClientMessageToAll(0x00FF007A, "Police GangZone was not taken over");
KillTimer(timer[playerid][Police]);
Checkpoint[playerid] = 0;
UnderAttack[Police] = 0;
}
}
return 1;
}