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"))
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...