speed
#3

https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key

Quote:
Originally Posted by wiki
Let's presume that you want to detect when a player presses their FIRE button, the obvious code would be:

PHP код:
if (newkeys == KEY_FIRE
This code may even work in your testing, but it is wrong and your testing is insufficient. Try crouching and pressing fire - your code will instantly stop working. Why? Because "newkeys" is no longer the same as "KEY_FIRE", it is the same as "KEY_FIRE" COMBINED WITH "KEY_CROUCH".
Reply


Messages In This Thread
speed boost help - by Heress - 21.07.2018, 09:10
Re: speed - by coool - 21.07.2018, 09:47
Re: speed - by Sew_Sumi - 21.07.2018, 10:14
Re: speed - by Heress - 21.07.2018, 10:14
Re: speed - by Sew_Sumi - 21.07.2018, 10:18
Re: speed - by Heress - 21.07.2018, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)