/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> new bool:c_enabled[33] public plugin_init() { register_plugin("Clock", "1.0", "Kruegs/Soccdoodcss") register_clcmd("say /clock", "say_clock") } public client_connect(id) { c_enabled[id] = false set_task(10.0, "show_info", id) } public show_info(id) { if(!is_user_connected(id) || c_enabled[id]) return PLUGIN_CONTINUE client_print(id, print_chat, "[Clock] Say '/clock' to show the time.") return PLUGIN_CONTINUE } public say_clock(id) { if(!is_user_connected(id)) return PLUGIN_HANDLED if(c_enabled[id]) { c_enabled[id] = false client_print(id, print_center, "[Clock] Clock Disabled.") return PLUGIN_HANDLED } client_print(id, print_center, "[Clock] Clock Enabled.") c_enabled[id] = true show_clock(id) return PLUGIN_HANDLED } public show_clock(id) { if(!is_user_connected(id)) return PLUGIN_CONTINUE if(!c_enabled[id]) return PLUGIN_CONTINUE new Time[15] get_time("%H:%M:%S %p",Time,14) set_hudmessage(42, 255, 42, 0.80, 0.05, 0, 1.0, 1.5, 0.0, 0.0, 2) show_hudmessage(id, "%s", Time) set_task(1.0, "show_clock", id) return PLUGIN_CONTINUE }
Domyślam się, że chodzi o tą linijkę:
set_hudmessage(42, 255, 42, 0.80, 0.05, 0, 1.0, 1.5, 0.0, 0.0, 2)
Które cyfry, za co odpowiadają? Proszę mi to wyjaśnić, bym mógł zmienić położenie zegara.