Raised This Month: $51 Target: $400
 12% 

bhop prestrafe 289.0 hack blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bonner
New Member
Join Date: Jul 2017
Old 07-04-2017 , 02:00   bhop prestrafe 289.0 hack blocker
Reply With Quote #1

I don't know if im doing this right or im doing it wrong, but can someone help me?
PHP Code:
 

Last edited by Bonner; 01-28-2019 at 17:46. Reason: idk
Bonner is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-04-2017 , 02:49   Re: bhop prestrafe 289.0 hack blocker
Reply With Quote #2

This belongs in the OnRunUserCommand forward.
__________________
Neuro Toxin is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-04-2017 , 11:10   Re: bhop prestrafe 289.0 hack blocker
Reply With Quote #3

`IN_JUMP` and `FL_ONGROUND` are just flag constants, so `!IN_JUMP` will always be false and `FL_ONGROUND` will always be true. Instead, you need to check if the right flags variable has them set, so place that code in the OnPlayerRunCmd forward, and check if `!(buttons & IN_JUMP)` and `GetEntityFlags(client) & FL_ONGROUND`. Also, you want just a normal `if` there, not a `while` loop.

`vec[1]` and `vec[2]` are the Y and Z components of the velocity vector. You want to check the total magnitude of the velocity vector instead to get the speed, with `GetVectorLength`.

Also, you can print the client name to the chat with just the %N format specifier, which takes a client index as an argument.
Miu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode