Well when players rob banks or casinos after the checkpoint where they have to go to get money is shown till that everything works fine but after on a vehicle if you got off even for a sec and redrive it to that Checkpoint, when you will be cross the checkpoint it will do nothing not gonna give money or stuff, but if you didn't fall from the vehicle and went straight to the checkpoint the mission will be successful help
PHP код:
case MISSION_TYPE_BANK_ROBBERY_1:
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
format(string, sizeof(string), "~w~BANK ROBBERY COMPLETE~n~~y~ROBBED $%d",PlayerInfo[playerid][pHoldupAmount]);
GameTextForPlayer(playerid,string, 5000, 3);
ShowTextDrawMenu(playerid, TD_MENU_INFO,"~g~Bank Robbery", 6, 0);
format(string, sizeof(string), "~w~You Have Successfully Reached Your ~p~Hideout~n~~w~You Cracked The Safe And Found ~g~$%d~n~~w~You Have Evaded The ~b~Police~n~~w~Your ~r~Wanted Level ~w~Has Been Lowered",PlayerInfo[playerid][pHoldupAmount]);
ShowTextDrawMenuItems(playerid, 0, string, " ", " ",0);
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerRaceCheckpoint(playerid);
PlayerInfo[playerid][pRaceCheckpoint] = 0;
PlayerInfo[playerid][pMission] = 0;
PlayerInfo[playerid][pHoldup] = 0;
if (PlayerInfo[playerid][pHoldupAmount] > 0)
{
GivePlayerMoney(playerid,PlayerInfo[playerid][pHoldupAmount]);
PlayerInfo[playerid][pEarnings] += PlayerInfo[playerid][pHoldupAmount];
}
format(string, sizeof(string), "Attention All Units! %s Has Been Robbed By %s (%d).",PlayerInfo[playerid][pName],playerid,PlayerInfo[playerid][pHoldupVictim]);
SendClientMessageToTeam(TEAM_LAW,COLOR_DISPATCH, string);
format(string, sizeof(string), "~b~%s (%d) ~w~Has Robbed ~g~$%d ~w~From ~b~%s~w~.",PlayerInfo[playerid][pName],playerid,PlayerInfo[playerid][pHoldupAmount],PlayerInfo[playerid][pHoldupVictim]);
SendClientOnScreenTextToAll(string);
PlayerInfo[playerid][pHoldupAmount] = 0;
TextDrawHideForPlayer(playerid, StatsDisplay[playerid]);
}
}