 |
|
Member
|

03-14-2006
, 14:26
|
#3
|
Quote:
|
Originally Posted by kinsprite2
Code:
public plugin_precache() {
if (file_exists("sound/misc/woohoo.wav"))
precache_sound("misc/woohoo.wav")
}
public plugin_init() {
..........................
register_clcmd("say","check_say")
register_clcmd("say_team","check_say")
}
public check_say(id){
..................
clsaywh(id)
return PLUGIN_CONTINUE
}
public clsaywh(id) {
if (!is_user_alive(id)) {
client_print(id,print_chat,"%L", id, "NOTALIVE")
return PLUGIN_HANDLED
}
if (file_exists("sound/misc/woohoo.wav"))
emit_sound(id,CHAN_STATIC, "misc/woohoo.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
return PLUGIN_HANDLED
}
just like this
|
O.O
is this plugin going to emit the sound only when some specific word is said?
|
|
|
|