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

How to block PlayerUse ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 04-03-2011 , 09:32   How to block PlayerUse ?
Reply With Quote #1

Edit (ConnorMcLeod) : Posts moved from http://forums.alliedmods.net/showthr...74#post1444174

If you want to block PlayerUse, than I would suggest to change pev_button at FM_PlayerPreThink pre to:
PHP Code:
new iButtons pev(idpev_button);
if( 
iButtons&IN_USE )
{
iButtons &= ~IN_USE;
set_pev(idpev_buttoniButtons);
set_pdata_cbase(idm_afButtonPressediButtons5); // offsetid 246

This should fix the problems related with USE if they exist.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 04-04-2011 at 03:59.
MPNumB is offline
Send a message via Skype™ to MPNumB
 



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 02:05.


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