Raised This Month: $ Target: $400
 0% 

Play .wav when someonay says a word...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TiToTal
Member
Join Date: Feb 2006
Old 03-14-2006 , 14:26  
Reply With Quote #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?
TiToTal is offline
 



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 20:22.


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