Raised This Month: $ Target: $400
 0% 

emit_sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 12-22-2015 , 23:11   Re: emit_sound
Reply With Quote #7

addons_zz

Quote:
Could you show your full code?
Code:
#include <amxmodx> #define MSG_POS_X 2457 // #define MSG_POS_Y 4096 // new which = 0; new szSoundsCount[5][64] = {"fvox/one.wav", "fvox/two.wav", "fvox/three.wav", "fvox/four.wav", "fvox/five.wav"}// Here the problem can not add more than 3 sounds ! public plugin_init() { register_message(SVC_TEMPENTITY, "hud_text_msg") } public plugin_precache() { for(new i = 0; i < sizeof szSoundsCount; i++) precache_sound(szSoundsCount[i]) } public hud_text_msg() { if (get_msg_arg_int(1) == TE_TEXTMESSAGE && get_msg_arg_int(3) == MSG_POS_X && get_msg_arg_int(4) == MSG_POS_Y) emit_sound(0, CHAN_VOICE, szSoundsCount[which++ % sizeof(szSoundsCount)], 1.0, 1.0, 0, 100)     }

this hud message


Here's the problem

https://www.youtube.com/watch?v=d-FoqjpGsxM
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



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 18:05.


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