Another question.
. How can I add a delay?
Code:
public box_speech(const iItem, const iPlayer)
{
switch (random_num(0, 5))
{
case 0: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_1, 1.0, ATTN_NORM, 0, PITCH_NORM);
case 1: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_2, 1.0, ATTN_NORM, 0, PITCH_NORM);
case 2: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_3, 1.0, ATTN_NORM, 0, PITCH_NORM);
case 3: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_4, 1.0, ATTN_NORM, 0, PITCH_NORM);
case 4: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_5, 1.0, ATTN_NORM, 0, PITCH_NORM);
case 5: emit_sound(iPlayer, CHAN_WEAPON, SOUND_PHIL_6, 1.0, ATTN_NORM, 0, PITCH_NORM);
}
}
I know I can do it with task and typical AMXX stuff, but I'm wondering if there's a more elegant method within Weaponmod.