Racing Nos.
#1

Hi. Recently. I've been adding things to my map testing server that could help. I was thinking of adding "Racing Nos". Basically. It's what you see in racing, and drifting servers. Hold LMB for nos, and Release from none. The issue is I have barely worked with OnPlayerKeyStateChange.
Reply
#2

It's the same as if you're creating a command, but instead your code would go under the key you're detecting. In your case, it would be KEY_FIRE which is LMB.

So your code would basically check if the button is being pressed
Код:
if (newkeys & KEY_FIRE)
then you'd check if the player is in a vehicle & give them the nos.
Reply
#3

The WIKI tells you how to do it: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Attach NOS when the player presses fire
Reply
#4

Thank you both. Both of your replies were quite helpful. REP for both of you.

[EDIT: Have to give others rep before I can add more to SickAttack, thanks anyway. :P]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)