SA-MP Forums Archive
[HELP]ROB - 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: [HELP]ROB (/showthread.php?tid=588535)



[HELP]ROB - Trollerz - 09.09.2015

Can anyone tell me how to make robbery places and script?


Re: [HELP]ROB - Roberto80 - 09.09.2015

First,get coords of robbery place,and where to deliver the money bag...
After,create a bool,nee bool:Rob;
then OnGameModeInit,Rob = true;
Next,create a cmd,like /rob,use IsPlayerInRangeOfPoint of robbery place,and use if(Rob == false) return SCM(bla bla bla you can't rob now);
And then in the cmd,check if player is robbing with another bool,and set a timer,and OnPlayerUpdate,if(robbingBool[playerid] == true) and if(!IsPlayer at robbery point) SCM(bla bla bla)
Then set timer,kill timer when he leave,and when timer done,set a checkpoint,and when he enter checkpoint,givr money...


Re: [HELP]ROB - DarkLored - 09.09.2015

I'd suggest looking up CNR gamemodes on the forums and taking an example from their methods.

I have made a tutorial long ago, when I was working on my CNR gamemode and made a tutorial about this kind of thing, it might not be the best tutorial or code but it does the job.

https://sampforum.blast.hk/showthread.php?tid=470049