At the last CP not receive the money. -
Make the race everything goes OK, when I get to the last CP and get into it, locks and do not get money in the bank. When leaving the car tells me Failed Mission. Why ?
HTML Code:
case CHECKPOINT_TRASH:
{
if(PlayerInfo[playerid][pJobTime] > 0)
{
if(PlayerInfo[playerid][pJobTime] != 45)
{
new id = PlayerInfo[playerid][pJobTime]-1;
if(IsPlayerInRangeOfPoint(playerid,15.0,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2]))
{
PlayerInfo[playerid][pJobTime]++;
DisablePlayerCheckpoint(playerid);
SetTimerEx("NextGarbage", 1000, false, "i", playerid);
TogglePlayerControllableEx(playerid,false);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Se descarca materialele..",1000,3);
SetPVarInt(playerid, "CheckJobRoute", 300);
}
else SetPlayerCheckpoint(playerid,TrashRoute[id][0],TrashRoute[id][1],TrashRoute[id][2],5.0);
}
else
{
DeletePVar(playerid,"JobVehicleID");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ai completat tura de curier si ai primit $3000 la paycheck");
SetPVarInt(playerid, "CheckEarn", 3000+GetPVarInt(playerid, "CheckEarn"));
TogglePlayerAllDynamicCPs(playerid, true);
SetPVarInt(playerid, "Checkpoint", CHECKPOINT_NONE);
PlayerInfo[playerid][pJobTime]=0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
DisablePlayerCheckpoint(playerid);
PlayAudioStreamForPlayerEx(playerid, "http://pr-gta.com/pr-rp-soundeffects/theme.mp3");
DeletePVar(playerid, "CheckJobRoute");
//CallRemoteFunction("GiveAchievement", "iii", playerid, 17, 1);
}
}
}
Re: At the last CP not receive the money. -