Raised This Month: $53 Target: $400
 13% 

Disable fire in hole


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-23-2013 , 02:35   Disable fire in hole
Reply With Quote #1

Know someone how to disable message FIRE in the hole from my server ??
LordOfNothing is offline
Old 11-23-2013, 03:46
PoLiCe
This message has been deleted by PoLiCe. Reason: Incorrect Code.
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-23-2013 , 04:08   Re: Disable fire in hole
Reply With Quote #2

you see a cvar ?
PHP Code:
public plugin_init() {
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)

    
register_message(get_user_msgid("TextMsg"), "message_text")

    
g_msgid_saytext get_user_msgid("SayText")
    
g_msgid_teaminfo get_user_msgid("TeamInfo")

LordOfNothing is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 11-23-2013 , 05:18   Re: Disable fire in hole
Reply With Quote #3

You can use Orpheu plugin by Arkshine, this will disable both radio sound/message of fire in the hole:
PHP Code:
#include <amxmodx>
#include <orpheu>

public plugin_init()
{
    
OrpheuRegisterHook(OrpheuGetFunction("Radio""CBasePlayer"), "OnRadio")
}

public 
OnRadio(const player, const audioCode[], const message[], const pitch, const displayIcon)
{
    if(
equali(message"#Fire_in_the_hole")) return _:OrpheuSupercede;
    
    return 
_:OrpheuIgnored;

Signature:
amxmodx\configs\orpheu\functions\CBasePlayer\ Radio
Code:
{
    "name"      : "Radio",
    "class"     : "CBasePlayer",
    "library"   : "mod",
    "arguments" :
    [
        {
            "type"  : "char *"
        },
        {
            "type"  : "char *"
        },
        {
            "type"  : "int"
        },
        {
            "type"  : "int"
        }
    ],
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x53,0x55,0x56,0x8B,"*",0x57,0x8B,"*",0xFF,0x90,"*","*","*","*",0x85]
        },
        {
            "os"    : "linux",
            "mod"   : "cstrike",
            "value" : "Radio__11CBasePlayerPCcT1sb"
        }
    ]
}
Tested and works fine on HLDS build 5758.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
bat
Veteran Member
Join Date: Jul 2012
Old 11-23-2013 , 05:19   Re: Disable fire in hole
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=29293
__________________
bat is offline
Send a message via Skype™ to bat
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-23-2013 , 08:13   Re: Disable fire in hole
Reply With Quote #5

Thanks yokomo i will try !
LordOfNothing is offline
LordOfNothing
BANNED
Join Date: Jul 2013
Old 11-23-2013 , 08:22   Re: Disable fire in hole
Reply With Quote #6

IS not working yokomo
LordOfNothing is offline
Old 11-23-2013, 12:32
PoLiCe
This message has been deleted by YamiKaitou. Reason: spam
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 11-24-2013 , 00:58   Re: Disable fire in hole
Reply With Quote #7

Quote:
Originally Posted by yokomo View Post
Tested and works fine on HLDS build 5758.
Signatures change, and will not work when you are using a different Version of HLDS.

EDIT:
Sig for Build HLDS 6027 (Latest)
PHP Code:
{
    
"name"      "Radio",
    
"class"     "CBasePlayer",
    
"library"   "mod",
    
"arguments" :
    [
        {
            
"type"  "char *"
        
},
        {
            
"type"  "char *"
        
},
        {
            
"type"  "int"
        
},
        {
            
"type"  "int"
        
}
    ],
    
"identifiers":
    [
        {
            
"os"    "windows",
            
"mod"   "cstrike",
            
"value" : [0x53,0x55,0x56,0x8B,0xF1,0x57,0x8B,0x06,0xFF,0x90,"*","*","*","*",0x85,0xC0]
        },
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "_ZN11CBasePlayer5RadioEPKcS1_sb"
        
}
    ]

Tested on Windows.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 11-24-2013 at 02:07.
Shooting King is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2013 , 03:59   Re: Disable fire in hole
Reply With Quote #8

Args are not correct in your sig.

Code:
{
    "name" : "Radio",
	"class" : "CBasePlayer",
    "library" : "mod",
    "info" : "Sends radio sound and obtional message to teamates",
    "arguments" :
    [
        {
            "type" : "char *",
            "info" : "msg_id"
        },
        {
            "type" : "char *",
            "info" : "msg_verbose"
        },
		{
            "type" : "short",
            "info" : "pitch"
        },
		{
            "type" : "bool",
            "info" : "showIcon"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
			"mod" : "cstrike",
            "value" : [0x53,0x55,0x56,0x8B,"*",0x57,0x8B,"*",0xFF,"*","*","*","*","*",0x85]
        },
        {
            "os" : "linux",
			"mod" : "cstrike",
            "value" : "_ZN11CBasePlayer5RadioEPKcS1_sb"
        }
    ]
}
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 11-24-2013 , 12:15   Re: Disable fire in hole
Reply With Quote #9

Should we care about that Connor ?? All we need is second argument from CBasePlayer::Radio.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2013 , 14:20   Re: Disable fire in hole
Reply With Quote #10

Yes we should care to provide good sig files, for this specific problem may be args doesn't matter, dunno.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 12:21.


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