PHP Code:
#include <amxmodx>
#include <amxmisc>
new const g_songs_names[][] = {
"czs.wav",
"czd.wav",
"cze.wav"
}
public plugin_init() {
register_plugin("Press", "1.0.0", "pewex")
register_logevent( "EventRoundStart", 2, "1=Round_Start" );
}
public plugin_precache() {
precache_sound("misc/czs.wav")
precache_sound("misc/czd.wav")
precache_sound("misc/cze.wav")
}
public EventRoundStart() {
set_task(60.0,"PlaySound")
}
public PlaySound() {
client_cmd(0, "spk misc/%s", g_songs_names[random(sizeof(g_songs_names))]);
}
I set 60 secons instead 600.
600 seconds = 10 MIN. Max default round time is 9 min (without special hacks).
__________________