Raised This Month: $ Target: $400
 0% 

Hostage Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 10-22-2005 , 21:16  
Reply With Quote #1

Thank you XxAvalanchexX. Now plugin works, and looks like:

Code:
#include <amxmodx> #include <engine> #include <fakemeta> public plugin_init() {     register_plugin("Hostage Sounds", "0.6", "Evaldas")     register_forward( FM_EmitSound, "EmitSound" ) } public plugin_precache() {     precache_sound("misc/hostages/okletsgo.wav")     precache_sound("misc/hostages/getouttahere.wav")     precache_sound("misc/hostages/letsgo.wav")     precache_sound("misc/hostages/illfollow.wav")     precache_sound("misc/hostages/youlead.wav") } public EmitSound(entity, channel, const sound[]) {     if( equal( sound, "hostage/hos1.wav" ))     {         emit_sound(entity, channel, "misc/hostages/okletsgo.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }     if( equal( sound, "hostage/hos2.wav" ))     {         emit_sound(entity, channel, "misc/hostages/getouttahere.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }     if( equal( sound, "hostage/hos3.wav" ))     {         emit_sound(entity, channel, "misc/hostages/letsgo.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }     if( equal( sound, "hostage/hos3.wav" ))     {         emit_sound(entity, channel, "misc/hostages/letsgo.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }     if( equal( sound, "hostage/hos4.wav" ))     {         emit_sound(entity, channel, "misc/hostages/illfollow.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }     if( equal( sound, "hostage/hos5.wav" ))     {         emit_sound(entity, channel, "misc/hostages/youlead.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)         return FMRES_SUPERCEDE;     }         return FMRES_IGNORED; }
__________________
Evaldas 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 23:53.


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