SA-MP Forums Archive
Robbing issues!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Robbing issues!! (/showthread.php?tid=495307)



Robbing issues!! - Crazydriver - 16.02.2014

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?


Re: Robbing issues!! - Lajko1 - 16.02.2014

You Should show OnPlayerEnterCheckPoint I guess


Re: Robbing issues!! - davve95 - 16.02.2014

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


AW: Robbing issues!! - Crazydriver - 16.02.2014

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]);
            }
        } 



AW: Robbing issues!! - Crazydriver - 17.02.2014

Bump


Re: Robbing issues!! - Crazydriver - 22.02.2014

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