Robbing issues!!
#1

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?
Reply
#2

You Should show OnPlayerEnterCheckPoint I guess
Reply
#3

I guess the checkpoint aren't allowing vehicles, show the code please.
Reply
#4

PHP код:
case MISSION_TYPE_BANK_ROBBERY_1:
        {
            if (
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
            
format(stringsizeof(string), "~w~BANK ROBBERY COMPLETE~n~~y~ROBBED $%d",PlayerInfo[playerid][pHoldupAmount]);
            
GameTextForPlayer(playerid,string50003);
             
ShowTextDrawMenu(playeridTD_MENU_INFO,"~g~Bank Robbery"60);
            
format(stringsizeof(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(playerid0string" "" ",0);
            
PlayerPlaySound(playerid10580.00.00.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(stringsizeof(string), "Attention All Units!  %s Has Been Robbed By %s (%d).",PlayerInfo[playerid][pName],playerid,PlayerInfo[playerid][pHoldupVictim]);
            
SendClientMessageToTeam(TEAM_LAW,COLOR_DISPATCHstring);
            
format(stringsizeof(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(playeridStatsDisplay[playerid]);
            }
        } 
Reply
#5

Bump
Reply
#6

NVM thanks for your opinions Fixed
P.s: Damn I'm making progress in scripting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)