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

No "Fire in the hole message"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
warhead
Senior Member
Join Date: Mar 2010
Old 03-24-2010 , 13:27   No "Fire in the hole message"
Reply With Quote #1

Can someone make a plugin which disables the "fire in the hole" message
it is very annoying specially in zm servers
warhead is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-24-2010 , 13:31   Re: No "Fire in the hole message"
Reply With Quote #2

Next time, search.

http://forums.alliedmods.net/showthread.php?p=466271
__________________
Arkshine is offline
warhead
Senior Member
Join Date: Mar 2010
Old 03-24-2010 , 13:36   Re: No "Fire in the hole message"
Reply With Quote #3

i know this plugin but i want only for this message not silent he's or whathever
10 kb plugin for only 1 chat mess ..
warhead is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-24-2010 , 13:37   Re: No "Fire in the hole message"
Reply With Quote #4

I have done this while ago.
sv_fith_block
  • 0 - Nothing is blocked.
  • 1 - Radio is blocked.
  • 2 - Message is blocked.
  • 3 - Radio and message is blocked.
Code:
#include < amxmodx > enum _:CvarBits (<<=1) {     BLOCK_RADIO = 1,     BLOCK_MSG }; new g_pCvar; public plugin_init( ) {     register_plugin( "'Fire in the hole' blocker", "1.0", "xPaw" );         g_pCvar = register_cvar( "sv_fith_block", "3" );         register_message( get_user_msgid( "TextMsg" ),   "MessageTextMsg" );     register_message( get_user_msgid( "SendAudio" ), "MessageSendAudio" ); } public MessageTextMsg( )     return ( get_msg_args( ) == 5 && IsBlocked( BLOCK_MSG ) ) ? GetReturnValue( 5, "#Fire_in_the_hole" ) : PLUGIN_CONTINUE; public MessageSendAudio( )     return IsBlocked( BLOCK_RADIO ) ? GetReturnValue( 2, "%!MRAD_FIREINHOLE" ) : PLUGIN_CONTINUE; GetReturnValue( const iParam, const szString[ ] ) {     new szTemp[ 18 ];     get_msg_arg_string( iParam, szTemp, 17 );         return ( equal( szTemp, szString ) ) ? PLUGIN_HANDLED : PLUGIN_CONTINUE; } bool:IsBlocked( const iType )     return bool:( get_pcvar_num( g_pCvar ) & iType );
__________________
xPaw is offline
warhead
Senior Member
Join Date: Mar 2010
Old 03-24-2010 , 13:42   Re: No "Fire in the hole message"
Reply With Quote #5

10x it works perfect
warhead is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-25-2010 , 02:47   Re: No "Fire in the hole message"
Reply With Quote #6

A command would allow to use unregister_message
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Murz
Member
Join Date: Jan 2015
Location: Lithuania Vilnius
Old 09-29-2015 , 09:41   Re: No "Fire in the hole message"
Reply With Quote #7

Cool thanks )

Last edited by Murz; 09-29-2015 at 09:42.
Murz is offline
Send a message via Skype™ to Murz
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 05:39.


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