SA-MP Forums Archive
Give Nos by Drift - 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: Give Nos by Drift (/showthread.php?tid=424422)



Give Nos by Drift - Gamer_007 - 22.03.2013

Hey guys, How are you? Ok So I thought yesterday night why I colud create a FS that gives the player amount of NOS according to his drift(I got this idea from Burnout Paradise The Ultimate Box Game).The amount of Nos will be in Textdraw or in 3D Text.So is this possible to make this FS?I didnt tried anything yet.I am asking if this is possible.If,yes then i should start work on it.Answer please!


Re: Give Nos by Drift - Jstylezzz - 22.03.2013

It is possible. If you save the nos to a variable. Once done, set a timer to check that variable, and if the variable if higher than 0 give the player nos, if it's 0, remove it. You need to detect whether a player is using nos, I think you can use OnPlayerKeyStateChange for this.

Good luck!


Re: Give Nos by Drift - Gamer_007 - 22.03.2013

Quote:
Originally Posted by Jari_Johnson*
View Post
It is possible. If you save the nos to a variable. Once done, set a timer to check that variable, and if the variable if higher than 0 give the player nos, if it's 0, remove it. You need to detect whether a player is using nos, I think you can use OnPlayerKeyStateChange for this.

Good luck!
Umm k.I got but if i want to give a specific amount of nos like 10 % nos/drift.So what should i do?


Re: Give Nos by Drift - RajatPawar - 22.03.2013

Use Gamer_Z's drift plugin to use OnPlayerStartDrifting, and then add components 1008, 1009 and 1010 (2x, 5x and 10x nitro.)


Re: Give Nos by Drift - Gamer_007 - 22.03.2013

Quote:
Originally Posted by Rajat_Pawar
View Post
Use Gamer_Z's drift plugin to use OnPlayerStartDrifting, and then add components 1008, 1009 and 1010 (2x, 5x and 10x nitro.)
Yo thanks