I have this plug-in will open the show and the time cvar I want to adjust
the map and adjust the time cvar
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(60.0,"Kontrol",_,_,_,"b")
}
public Kontrol() {
new mapname[32],systime[5];
get_mapname(mapname,31)
get_time("%H",systime,4);
if(equali(systime,"23")) {
if(!equali(mapname,"surf_ski_2")) {
server_cmd("changelevel surf_ski_2")
}
else if(get_cvar_num("mp_timelimit")) {
set_cvar_num("mp_timelimit",0)
}
}
else if(equali(systime,"11") && !get_cvar_num("mp_timelimit")) {
set_cvar_num("mp_timelimit",0)
}
}