PHP Code:
public Thunderclap(id)
{
ArrayGetString(sound_thunder, random_num(0, ArraySize(sound_thunder) - 1), sound, charsmax(sound))
PlaySound(sound);
set_task( random_float( 30.0, 90.0 ), "Thunderclap");
}
That might work. The fact that set_task is in the function kinda scares me, but you said public event, not sure if you wanted it to be one function.
__________________