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

Solved [Request] Anti Spam of Use Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Snake.
Senior Member
Join Date: Jul 2017
Old 09-25-2020 , 18:07   Re: [Request] Anti Spam of Use Sound
Reply With Quote #11

Quote:
Originally Posted by Supremache View Post
What !!!! ??? is that in normal mod ? or which mod have you use
It's not releated to any mode or plugin. Cs's itself has that future. I cant believe you dont know that. ;D
Snake. is offline
Send a message via Skype™ to Snake.
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-25-2020 , 18:41   Re: [Request] Anti Spam of Use Sound
Reply With Quote #12

You make me open cs 1.6 and doing spam on E button to know that sound but i didn't listen any sound xD
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 09-25-2020 , 18:47   Re: [Request] Anti Spam of Use Sound
Reply With Quote #13

This sound i meant.
Attached Files
File Type: zip sound.zip (1.6 KB, 37 views)
Snake. is offline
Send a message via Skype™ to Snake.
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-25-2020 , 19:04   Re: [Request] Anti Spam of Use Sound
Reply With Quote #14

Quote:
Originally Posted by Snake. View Post
This sound i meant.
Okay then use this plugin : Jump Sound Blocker
This for block jump sound just edit this plugin for small things like:

Change this code from "IN_JUMP" To "IN_USE"
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 09-25-2020 , 19:08   Re: [Request] Anti Spam of Use Sound
Reply With Quote #15

Quote:
Originally Posted by Supremache View Post
Okay then use this plugin : Jump Sound Blocker
This for block jump sound just edit this plugin for small things like:

Change this code from "IN_JUMP" To "IN_USE"
I dont wanna block it completely, just wanna make it use every x seconds to block spam.
Snake. is offline
Send a message via Skype™ to Snake.
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-25-2020 , 19:21   Re: [Request] Anti Spam of Use Sound
Reply With Quote #16

Floot time for this button ?
Okay i wil...
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-25-2020 , 20:41   Re: [Request] Anti Spam of Use Sound
Reply With Quote #17

yo Snake, can you test this?

Need only to change USE_TIME to your value which is fine for you, i find 0.3sec is good for me:

Code:
#include <amxmodx>
#include <fakemeta>

#define USE_TIME 0.3

new Float: g_fUseTime[ 33 ]

public plugin_init( )
{
	register_plugin( "Block Spam +Use", "1.0", "internet provider" )

	register_forward( FM_EmitSound, "block_sound" )
}
public client_putinserver( id )
{
    g_fUseTime[ id ] = 0.0
}
public block_sound( entity, channel, const sound[] ) //Alucard^ credits
{
    if( equali( sound, "common/wpn_denyselect.wav" ) && get_gametime() - g_fUseTime[ entity ] < USE_TIME )
    {
        g_fUseTime[ entity ] = get_gametime()
        return FMRES_SUPERCEDE
    }
    g_fUseTime[ entity ] = get_gametime()
    return FMRES_IGNORED
}
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 09-25-2020 at 20:48.
JocAnis is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 09-26-2020 , 07:23   Re: [Request] Anti Spam of Use Sound
Reply With Quote #18

Quote:
Originally Posted by JocAnis View Post
yo Snake, can you test this?

Need only to change USE_TIME to your value which is fine for you, i find 0.3sec is good for me:

Code:
#include <amxmodx>
#include <fakemeta>

#define USE_TIME 0.3

new Float: g_fUseTime[ 33 ]

public plugin_init( )
{
	register_plugin( "Block Spam +Use", "1.0", "internet provider" )

	register_forward( FM_EmitSound, "block_sound" )
}
public client_putinserver( id )
{
    g_fUseTime[ id ] = 0.0
}
public block_sound( entity, channel, const sound[] ) //Alucard^ credits
{
    if( equali( sound, "common/wpn_denyselect.wav" ) && get_gametime() - g_fUseTime[ entity ] < USE_TIME )
    {
        g_fUseTime[ entity ] = get_gametime()
        return FMRES_SUPERCEDE
    }
    g_fUseTime[ entity ] = get_gametime()
    return FMRES_IGNORED
}
Thanks. <3
Snake. is offline
Send a message via Skype™ to Snake.
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 00:02.


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