05.06.2017, 22:15
I'd avoid Berylliums suggestion, and use the next version down in the wiki.
This is why the second poster defined PRESSED.
Using Berylliums method, you could flood the server everytime someone looks behind them, as with the above, and PRESSED situation it fires once.
With Berylliums, it'll spam, and will be likely to cause acklimit errors. Especially being that that key, is a common one to be using.
Код:
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
Using Berylliums method, you could flood the server everytime someone looks behind them, as with the above, and PRESSED situation it fires once.
With Berylliums, it'll spam, and will be likely to cause acklimit errors. Especially being that that key, is a common one to be using.