Raised This Month: $ Target: $400
 0% 

[solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cstrike37
Member
Join Date: Jan 2012
Old 05-07-2013 , 19:13   [solved]
Reply With Quote #1

Hello!

Can someone tell me whats wrong here?

When the user the dies while holding a nade the 'Fire in the hole' sound plays without him even throwing the nade.

PHP Code:
public message()
{
    if(!
get_cvar_num("amx_custom_radio"))
        return 
PLUGIN_CONTINUE

    
if(get_msg_args() != || get_msg_argtype(2) != ARG_STRING || get_msg_argtype(4) != ARG_STRING)
    {
        return 
PLUGIN_CONTINUE
    
}

    new 
arg2[16]
    
get_msg_arg_string(2arg215)
    if(!
equal(arg2"#Game_radio"))
    {
        return 
PLUGIN_CONTINUE
    
}
    
    new 
arg4[20]
    
get_msg_arg_string(4arg419)
    if(
equal(arg4"#Fire_in_the_hole"))
    {
        
set_msg_arg_string(4CRfireinhole)
        return 
PLUGIN_CONTINUE
    
}
    
    return 
PLUGIN_CONTINUE
}

public 
msg_audio()
{
    if(!
get_cvar_num("amx_custom_radio"))
        return 
PLUGIN_CONTINUE
        
    
if(get_msg_args() != || get_msg_argtype(2) != ARG_STRING) {
        return 
PLUGIN_CONTINUE
    
}

    new 
arg2[20]
    
get_msg_arg_string(2arg219)
    if(
equal(arg2[1], "!MRAD_FIREINHOLE"))
    {
            return 
PLUGIN_HANDLED
    
}

    return 
PLUGIN_CONTINUE
}

public 
grenade_throw(id,ent,wid

    if(!
get_cvar_num("amx_custom_radio")) 
        return 
PLUGIN_CONTINUE 
         
    
new players[32],totalteam_name[10]  
    
get_user_team(id,team_name9)  
    
get_players(playerstotal ,"ce"team_name// No bots and Match team name 
    
new name[32
    
get_user_name(id,name,31
    for(new 
a=0total; ++a
    {  
        
client_cmd(players[a], "spk radio/custom/ct_fireinhole.wav"
        if (
get_cvar_num("amx_real_radio"))   
        { 
        
emit_sound(idCHAN_VOICE"radio/custom/ct_fireinhole.wav" 0.9ATTN_STATIC0PITCH_NORM)   
        } 
    } 
    return 
PLUGIN_HANDLED 


Last edited by cstrike37; 05-07-2013 at 22:13.
cstrike37 is offline
 


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


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