Szukam pluginu na aktualną datę i godzinę na serwerze w hud.
Mógłby ktoś edytować poniższy, żeby była wyświetlana data?;
#include <amxmodx> public plugin_init() { register_plugin("TimeProjector","0.1","ST4life") set_task(1.0, "show_timer",0,"",0,"b") return PLUGIN_CONTINUE } public show_timer(){ new nextmap[32] new Time[9] get_time("%H:%M:%S",Time,8) get_cvar_string("amx_nextmap",nextmap,31) new timeleft = get_timeleft() set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13) show_hudmessage(0,"Godzina: %s^nPozostaly czas: %d:%02d^nNastepna mapa: %s", Time, timeleft / 60, timeleft % 60,nextmap) return PLUGIN_CONTINUE }
Użytkownik BeMM edytował ten post 19.08.2014 11:42