chodzi mi o to zeby w dzien byly normalne pluginy (4FUN) a w nocy jakis mod.
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Godzine Mapcycle"
#define VERSION "1.0"
#define AUTHOR ""
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
wczytaj_mapcycle()
return PLUGIN_CONTINUE
}
public wczytaj_mapcycle() {
new today_str[8], cmd[48]
get_time("%H",today_str,8)
new today = str_to_num(today_str)
if ((today >= 21) && (today < 7))
format(cmd,48,"mapcyclefile mapcycle-noc.cfg",today)
else if ((today >= 7) || (today < 1))
format(cmd,48,"mapcyclefile mapcycle.cfg",today)
server_cmd(cmd)
return PLUGIN_HANDLED
}a moze znacie inne sposoby zeby rozwiazac ten problem?
Pozdr0!


Dodatki SourceMod



Temat jest zamknięty









