Posts: 274
Threads: 67
Joined: Oct 2014
Can anyone tell me how to make robbery places and script?
Posts: 255
Threads: 23
Joined: Dec 2014
Reputation:
0
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...