AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bomb Defuse (https://forums.alliedmods.net/showthread.php?t=126128)

Amonel 05-05-2010 18:58

Bomb Defuse
 
PHP Code:

#include <amxmodx>

#define PLUGIN    "bomb_defused"
#define AUTHOR    "AmoneL"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_message(get_user_msgid("TextMsg"), "eTextMsg")
}

public 
eTextMsg(msg_idmsg_destmsg_entity)
{
    static 
szMessage[64]
    
get_msg_arg_string(2szMessage63)
    if(
equali(szMessage"#Bomb_Defused"))
        
client_cmd(0"spk ^"radio/bombdef^"")
        
set_msg_arg_string(2"B o m b   d e f u s e d !")


What should i do in order to prevent playing the sound again and again...

drekes 05-05-2010 19:55

Re: Bomb Defuse
 
remove this line
PHP Code:

        client_cmd(0"spk ^"radio/bombdef^""


Amonel 05-06-2010 12:25

Re: Bomb Defuse
 
yes, but i still need to play that sound when bomb is defused :}

Arkshine 05-06-2010 12:51

Re: Bomb Defuse
 
You want to remove what sound exactly ? I'm confused.

drekes 05-06-2010 13:46

Re: Bomb Defuse
 
Quote:

Originally Posted by Arkshine (Post 1172700)
You want to remove what sound exactly ? I'm confused.

Same

Amonel 05-06-2010 14:01

Re: Bomb Defuse
 
i do not want to remove any sound.

usually, when a player defuses the bomb it is played "ct win"... i want to change that sound to "bomb has been defused sound"... to speak radio/bombdef

<VeCo> 05-06-2010 14:10

Re: Bomb Defuse
 
http://forums.alliedmods.net/showthread.php?p=883102

Amonel 05-06-2010 16:26

Re: Bomb Defuse
 
i didn't use that because it makes my sv crash after bomb is defused... i will see what i can do :/

if there no other way...

Arkshine 05-06-2010 17:03

Re: Bomb Defuse
 
i've reviewed the code and I don't see any part which could crash your server.

drekes 05-06-2010 18:07

Re: Bomb Defuse
 
maybe it interferes with another plugin?


All times are GMT -4. The time now is 03:34.

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