pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
new string[128];
new name[MAX_PLAYER_NAME];
if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
{
TaxiAccepted[playerid] = 999;
GameTextForPlayer(playerid, "~w~Destino completo", 5000, 1);
TaxiCallTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(ServCopTime[playerid] > 0 && CopAcc[playerid] < 999)
{
CopAcc[playerid] = 999;
GameTextForPlayer(playerid, "~w~Destino completo", 5000, 1);
ServCopTime[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
if(GPSPos[playerid] == 1)
{
GPSPos[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
else if(PlayerToPoint(5.0,playerid,218.2851,-98.5317,1005.2578))
{
if(PlayerInfo[playerid][pMember] == 0)
{
ShowMenuForPlayer(Zip, playerid);
SetPlayerPos(playerid, 218.2851,-98.5317,1005.2578);
SetPlayerFacingAngle(playerid, 271.0125);
TogglePlayerControllable(playerid, false);
SetPlayerCameraPos(playerid, 216.5639,-99.6462,1005.2578);
SetPlayerCameraLookAt(playerid, 218.6617,-98.5263,1005.2578);
LimparChat(playerid);
DisablePlayerCheckpoint(playerid);
}
if(PlayerInfo[playerid][pMember] == 23)
{
ShowMenuForPlayer(Zip, playerid);
SetPlayerPos(playerid, 218.2851,-98.5317,1005.2578);
SetPlayerFacingAngle(playerid, 271.0125);
TogglePlayerControllable(playerid, false);
SetPlayerCameraPos(playerid, 216.5639,-99.6462,1005.2578);
SetPlayerCameraLookAt(playerid, 218.6617,-98.5263,1005.2578);
LimparChat(playerid);
DisablePlayerCheckpoint(playerid);
}
if(IsACop(playerid) && OnDuty[playerid] == 0)
{
...
EDIT: Nao tem como por alguma funзгo no comando mesmo para remover o cp qndo o player chegar? pq dai seria mais rapido e nao daria bugs