Raised This Month: $ Target: $400
 0% 

emit sound to specific player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
crazylf2
Member
Join Date: May 2004
Old 06-25-2007 , 04:10   Re: emit sound to specific player
Reply With Quote #4

Code:
new i 
const a = 33
new mute[a] = {1, ...} 

public aocvoice31(id){
client_print(0,print_chat,"%L",LANG_PLAYER,"ATTACK_ATTACK")
for (i=1; i<=32; i++)
{
	if (mute[i] == 1) {
		emit_sound(i,CHAN_VOICE,"31.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		} 
		else {
		return PLUGIN_CONTINUE
	}
}
}


public mutevoice(id)
{
mute[id] = 0 
client_print(id,print_chat,"%L",LANG_PLAYER,"YOU_MUTE")
}

public unmutevoice(id)
{
mute[id] = 1 
client_print(id,print_chat,"%L",LANG_PLAYER,"YOU_UNMUTE")
}

i wrote this code suspose to able player to emit sound
they can type "say 11" to emit sound to everyone
and now i want they can type "!mute" to make the sound stop
cannot hear anymore
but these code does no effect when i typed !mute
is there any mistake ?

thank you

Last edited by crazylf2; 06-25-2007 at 04:15.
crazylf2 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 21:25.


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