Code:
public load_mapcycle()
{
new today_str[8], cmd[48]
get_time("%H",today_str,8)
new today = strtonum(today_str)
if ((today >= 0) && (today < 9))
format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/morning.cfg",today)
else if ((today >= 9) && (today < 18))
format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/day.cfg",today)
else if (today >= 18)
format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/evening.cfg",today)
server_cmd(cmd)
return PLUGIN_HANDLED
}
i would do the same thing but for for example sv_gravity.
what its possible ?
__________________