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
__________________