Raised This Month: $ Target: $400
 0% 

Bomb Defuse


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amonel
Senior Member
Join Date: May 2009
Old 05-05-2010 , 18:58   Bomb Defuse
Reply With Quote #1

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...
Amonel is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-05-2010 , 19:55   Re: Bomb Defuse
Reply With Quote #2

remove this line
PHP Code:
        client_cmd(0"spk ^"radio/bombdef^""
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Amonel
Senior Member
Join Date: May 2009
Old 05-06-2010 , 12:25   Re: Bomb Defuse
Reply With Quote #3

yes, but i still need to play that sound when bomb is defused :}
Amonel is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-06-2010 , 12:51   Re: Bomb Defuse
Reply With Quote #4

You want to remove what sound exactly ? I'm confused.
__________________
Arkshine is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-06-2010 , 13:46   Re: Bomb Defuse
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
You want to remove what sound exactly ? I'm confused.
Same
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Amonel
Senior Member
Join Date: May 2009
Old 05-06-2010 , 14:01   Re: Bomb Defuse
Reply With Quote #6

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
Amonel is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-06-2010 , 14:10   Re: Bomb Defuse
Reply With Quote #7

http://forums.alliedmods.net/showthread.php?p=883102
__________________
<VeCo> is offline
Amonel
Senior Member
Join Date: May 2009
Old 05-06-2010 , 16:26   Re: Bomb Defuse
Reply With Quote #8

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...
Amonel is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-06-2010 , 17:03   Re: Bomb Defuse
Reply With Quote #9

i've reviewed the code and I don't see any part which could crash your server.
__________________
Arkshine is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-06-2010 , 18:07   Re: Bomb Defuse
Reply With Quote #10

maybe it interferes with another plugin?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 03:34.


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