Raised This Month: $ Target: $400
 0% 

[ H3LP ] Block IN_BACK


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-21-2018 , 16:37   [ H3LP ] Block IN_BACK
Reply With Quote #1

Hello, I'm trying to block the velocity that is applied when player press IN_BACK. I tried the following but doesn't work properly.

Code:
public CBasePlayer_PreThink(this) {     if (!is_user_alive(this))         return HC_CONTINUE;     static bitsButton;     bitsButton = get_entvar(this, var_button);     if (bitsButton & IN_BACK)         set_entvar(this, var_button, bitsButton & ~IN_BACK);     return HC_CONTINUE; }

Also I tried to disable maxspeed, but doesn't worked.

Code:
public CBasePlayer_ResetMaxSpeed_Post(this) {     if (!is_user_alive(this))         return;     set_entvar(this, var_maxspeed, 0.0); }
__________________








CrazY. is offline
 


Thread Tools
Display Modes

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 12:43.


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