Raised This Month: $ Target: $400
 0% 

????Sound Trigger????


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Swe-Death
Member
Join Date: Nov 2004
Location: Sweden
Old 07-19-2005 , 00:05   ????Sound Trigger????
Reply With Quote #1

???Whats Is Code For Sound???
Swe-Death is offline
Send a message via MSN to Swe-Death
Front Line
Senior Member
Join Date: Jan 2005
Old 07-19-2005 , 00:21  
Reply With Quote #2

emit_sound

so i am convinced...
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Swe-Death
Member
Join Date: Nov 2004
Location: Sweden
Old 07-19-2005 , 00:24  
Reply With Quote #3

emit_sound ?????
---------------
emit_sound (music target here???)
Swe-Death is offline
Send a message via MSN to Swe-Death
Front Line
Senior Member
Join Date: Jan 2005
Old 07-19-2005 , 00:47  
Reply With Quote #4

emit_sound ( index, channel, sample[], Float:vol, Float:att,flags, pitch )
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Swe-Death
Member
Join Date: Nov 2004
Location: Sweden
Old 07-19-2005 , 00:57  
Reply With Quote #5

emit_sound ( index, channel, sample[], Float:vol, Float:att,flags, pitch )

ehhhhh???? (iam newbie)
Swe-Death is offline
Send a message via MSN to Swe-Death
Front Line
Senior Member
Join Date: Jan 2005
Old 07-19-2005 , 01:12  
Reply With Quote #6

here is an example of me cancelling out a sound
and importing a new one in its place...

Code:
public plugin_init() {     register_plugin("Replacing Sound", "1.0", "Front Line")     register_clcmd("array_go","check_uncheck")     register_forward( FM_EmitSound, "EmitSound" ) } new array_go[33] public check_uncheck(id) { if ( array_go[id] !=0 ) { array_go[id] = 0 return PLUGIN_HANDLED } else { array_go[id] = 1 } return PLUGIN_HANDLED } public EmitSound(entity, channel, const sound[]) {       if( entity > 32 || entity < 1 ) return FMRES_IGNORED;         if( array_go[entity] !=0 ) {           if( containi( sound, "sound/weapons/p90-1.wav" ) != -1 ) { emit_sound( entity, channel, "sound/weapons/mA5B-1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM ); return FMRES_SUPERCEDE; } }
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Reply



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 00:23.


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