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

Block +use


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
painlesstgp
Senior Member
Join Date: May 2019
Location: Sweden
Old 10-25-2020 , 23:39   Block +use
Reply With Quote #1

Possible to block +use? with a plugin, please reply if you can make it
painlesstgp is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 08:21   Re: Block +use
Reply With Quote #2

Code:
public Action OnClientCommand(int client, int args)
{
	char sCommand[32];
	GetCmdArg(0, sCommand, sizeof(sCommand));
	
	if (StrEqual(sCommand, "+use", false))
		return Plugin_Stop;
	
	return Plugin_Continue;
}
May or may not work, untested.
Drixevel is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-26-2020 , 11:55   Re: Block +use
Reply With Quote #3

You can try this one too (also untested)

PHP Code:
public Action OnPlayerRunCmd(int clientint &buttonsint &impulsefloat vel[3], float angles[3], int &weapon)
{
    if (
buttons IN_USE)
    {
        
buttons &= ~IN_USE;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

__________________

Last edited by Marttt; 10-26-2020 at 11:55.
Marttt 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 19:35.


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