Raised This Month: $32 Target: $400
 8% 

CSGO Weapon Fire Block


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
recar
Junior Member
Join Date: Feb 2018
Old 04-24-2018 , 12:40   CSGO Weapon Fire Block
Reply With Quote #1

Hi ,

How to CSGO Weapons Fire Blocks ?
recar is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-24-2018 , 12:52   Re: CSGO Weapon Fire Block
Reply With Quote #2

Blocking the ability to shoot... or the muzzle flash?
Mitchell is offline
recar
Junior Member
Join Date: Feb 2018
Old 04-24-2018 , 16:17   Re: CSGO Weapon Fire Block
Reply With Quote #3

shoot
recar is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 04-25-2018 , 12:10   Re: CSGO Weapon Fire Block
Reply With Quote #4

PHP Code:
public Action OnPlayerRunCmd(int clientint &buttons)
{
    if (
buttons IN_ATTACK)
        {
        
buttons &= ~IN_ATTACK;
        }

__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests

Last edited by BraveFox; 04-25-2018 at 12:12.
BraveFox is offline
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 04-25-2018 , 22:03   Re: CSGO Weapon Fire Block
Reply With Quote #5

I think adding a return Plugin_Changed; on OnWeaponFirePre should block it.
__________________
Massive Infection:: Piu-Games
Desktop is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-25-2018 , 22:25   Re: CSGO Weapon Fire Block
Reply With Quote #6

You can also use what I use in my paintball plugin which is changing the next shoot time of the weapon: https://github.com/MitchDizzle/Exten...l.sp#L572-L598
Mitchell is offline
recar
Junior Member
Join Date: Feb 2018
Old 04-26-2018 , 07:54   Re: CSGO Weapon Fire Block
Reply With Quote #7

Quote:
Originally Posted by BraveFox View Post
PHP Code:
public Action OnPlayerRunCmd(int clientint &buttons)
{
    if (
buttons IN_ATTACK)
        {
        
buttons &= ~IN_ATTACK;
        }


high ping not working.
recar is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 04-26-2018 , 08:28   Re: CSGO Weapon Fire Block
Reply With Quote #8

Quote:
public Action OnPlayerRunCmd(int client, int &buttons)
{
if (buttons & IN_ATTACK)
{
buttons &= ~IN_ATTACK;
return Plugin_Changed;
}
return Plugin_Continue;
}
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-26-2018 , 08:59   Re: CSGO Weapon Fire Block
Reply With Quote #9

Or use what I posted and avoid the whole prediction problem.
Mitchell is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 06-14-2021 , 09:52   Re: CSGO Weapon Fire Block
Reply With Quote #10

Quote:
Originally Posted by Mitchell View Post
You can also use what I use in my paintball plugin which is changing the next shoot time of the weapon: https://github.com/MitchDizzle/Exten...l.sp#L572-L598
Nice idea. Thanks.
`666 is offline
Reply


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 20:50.


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