PHP Code:
#include <amxmodx>
#define PLUGIN "bomb_defused"
#define AUTHOR "AmoneL"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("TextMsg"), "eTextMsg")
}
public eTextMsg(msg_id, msg_dest, msg_entity)
{
static szMessage[64]
get_msg_arg_string(2, szMessage, 63)
if(equali(szMessage, "#Bomb_Defused"))
set_msg_arg_string(2, "B o m b d e f u s e d !")
}
i want to make players exec sound "radio/bombdef.wav", i tried cliend_cmd spk.. but doesn't work
also using
http://forums.alliedmods.net/showthread.php?t=98643 will freeze my server