SA-MP Forums Archive
[Question] how to stop boost in a race ? - 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: [Question] how to stop boost in a race ? (/showthread.php?tid=507672)



[Question] how to stop boost in a race ? - iAnonymous - 18.04.2014

Alright guys so I am using the race system by Rayden (similar name ).
I have implemented a boost system in the gamemode and now the problem is that when I join race , I still can use boost .

The key used to boost =2

Is there any way to stop it when player is in race ?

And yeah , I also want to remove the jump car ability
The key to jump the car = capslock

I hope I get some coding down here related to my matter

Thank you !


Re: [Question] how to stop boost in a race ? - iZN - 18.04.2014

Is that race system is implemented to your gamemode? Then you can do something for it, otherwise nope.


Re: [Question] how to stop boost in a race ? - iAnonymous - 18.04.2014

It is an FS edited according to the gamemode .


Re: [Question] how to stop boost in a race ? - Konstantinos - 18.04.2014

You can make a public function into the filterscript that returns whether a player is in race or not.
Then you can call that public function with CallRemoteFunction and the value will be returned should be checked. If the player is not in race, then allow the speedboost and jump.