Raised This Month: $ Target: $400
 0% 

[solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-07-2013 , 19:24   Re: Fire in the Hole sound
Reply With Quote #2

Try :

PHP Code:
public grenade_throw(id,ent,wid

    if(!
get_cvar_num("amx_custom_radio")) 
        return 
PLUGIN_CONTINUE 
I haven't checked, but player could still be considerated as alive when he dies and throw his nade.
Anyway, grenade_throw is not a smart way to change the sound.

Correct way would be to set it there :
PHP Code:
    new arg2[20]
    
get_msg_arg_string(2arg219)
    if(
equal(arg2[1], "!MRAD_FIREINHOLE"))
    {
            return 
PLUGIN_HANDLED
    

instead fo blocking, set the string to custom sound.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-07-2013 at 19:25.
ConnorMcLeod is offline
 



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 10:51.


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