/* * AMX Mod X script. * Auto nozowka * Działa tylko pod AMXX */ #include <amxmodx> #include <amxmisc> #include <engine> #define ACCESS ADMIN_SLAY public plugin_init() { register_plugin("Restart","8.1","-ThX-") register_clcmd("say /restart","say_restart",NO_ACCESS) register_clcmd("say /koniec","say_koniec",NO_ACCESS) } public say_restart(id) { if(!(get_user_flags(id) & ACCESS)) return pause("ac","ptb_PL.amxx") new jac1=random_num(0,255) new jac2=random_num(0,255) new jac3=random_num(0,255) set_hudmessage(jac1, jac2, jac3, -1.0, 0.30, 2, 0.02, 1.0, 0.01, 0.1, 10) show_hudmessage(0,"==================^n* Gramy live za 3 *^nrestarty^n==================") set_task(1.0,"restarcik", 0) set_task(7.0,"restarcik", 0) set_task(9.0,"restarcik_trzeci", 0) } public restarcik() { server_cmd("sv_restart 1") } public restarcik_trzeci() { server_cmd("sv_restart 3") set_task(2.0,"live_in_da_chat", 0) } public live_misie() { new jac1=random_num(0,255) new jac2=random_num(0,255) new jac3=random_num(0,255) set_hudmessage(jac1, jac2, jac3, -1.0, 0.30, 2, 0.02, 1.0, 0.01, 0.1, 10) show_hudmessage(0, "Live ! Live ! Live ! GL & HF !^nLive ! Live ! Live ! GL & HF !^nLive ! Live ! Live ! GL & HF !" ) } public live_in_da_chat() { client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") client_print(0, print_chat, "[-----------------LIVE!---------------]") set_task(3.0, "live_misie") } public say_koniec() { server_cmd("sv_restart 1") unpause("ac","ptb_PL.amxx") new jac1=random_num(0,255) new jac2=random_num(0,255) new jac3=random_num(0,255) set_hudmessage(jac1, jac2, jac3, -1.0, 0.30, 2, 0.02, 1.0, 0.01, 0.1, 10) show_hudmessage(0,"==================^n* Koniec Meczu! *^n==================") }
I chciałbym, aby go przerobić w taki sposób:
* Restart włącza się po zmianie mapki (tak jak te standardowe restarty)
* Restart trwa 30 sekund.
* Napisy zamiast wyświetlać się 2 sekund będą około 5.
* w lewym dolnym rogu będzie napis (do live pozostało %s sekund)
* Na końcu 3 restarty i zostawić tak jak jest w sayu live
* aby napis gl hf trwał dłużej około 3s
Będzie wieeelki + liczę na diablo mastera micza ;]