Try this.
PHP Code:
#include <amxmodx>
new RoundTime;
public plugin_init()
{
register_plugin("Detect Round Time", "1.0", "hleV");
register_logevent("RoundStart", 2, "1=Round_Start");
register_logevent("RoundEnd", 2, "1=Round_End");
RoundTime = get_cvar_pointer("mp_roundtime");
}
public RoundStart()
set_task(get_pcvar_float(RoundTime) - 60.0, "Execute", 123);
public RoundEnd()
remove_task(123);
public Execute()
{
// Execute command for all players
client_cmd(0, "yourcommand");
// Execute command for server
server_cmd("yourcommand");
}
__________________