Hoi,
Try this
PHP Code:
public void OnPluginStart()
{
CreateTimer(1.0, StopSounds, _, TIMER_REPEAT);
}
public Action StopSounds(Handle timer)
{
for(new i=1;i<=MaxClients;i++)
{
StopSound(i, SNDCHAN_AUTO, "npc/fast_zombie/gurgle_loop1.wav");
StopSound(i, SNDCHAN_AUTO, "npc/antlion/pain1.wav");
StopSound(i, SNDCHAN_AUTO, "npc/antlion/fly1.wav");
StopSound(i, SNDCHAN_AUTO, "npc/antlion/idle1.wav");
PrintToChatAll("Sounds automatically stopped!");
}
}
Well if you want it for every 300 seconds just set the timer at 300.0 and use OnMapStart maybe
__________________