SMA
#include <amxmodx> #include <amxmisc> #define PLUGIN "Nowy plugin" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) set_task(20.0,"odliczanie20",_,_,_,"d") set_task(19.0,"odliczanie19",_,_,_,"d") set_task(18.0,"odliczanie18",_,_,_,"d") set_task(17.0,"odliczanie17",_,_,_,"d") set_task(16.0,"odliczanie16",_,_,_,"d") set_task(15.0,"odliczanie15",_,_,_,"d") set_task(14.0,"odliczanie14",_,_,_,"d") set_task(13.0,"odliczanie13",_,_,_,"d") set_task(12.0,"odliczanie12",_,_,_,"d") set_task(11.0,"odliczanie11",_,_,_,"d") set_task(10.0,"odliczanie10",_,_,_,"d") set_task(9.0,"odliczanie9",_,_,_,"d") set_task(8.0,"odliczanie8",_,_,_,"d") set_task(7.0,"odliczanie7",_,_,_,"d") set_task(6.0,"odliczanie6",_,_,_,"d") set_task(5.0,"odliczanie5",_,_,_,"d") set_task(4.0,"odliczanie4",_,_,_,"d") set_task(3.0,"odliczanie3",_,_,_,"d") set_task(2.0,"odliczanie2",_,_,_,"d") set_task(1.0,"odliczanie1",_,_,_,"d") set_task(0.1,"koniecodliczania",_,_,_,"d") } public odliczanie20() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 20 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie19() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 19 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie18() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 18 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie17() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 17 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie16() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 16 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie15() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 15 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie14() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 14 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie13() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 13 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie12() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 12 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie11() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 11 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie10() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 10 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie9() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 9 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie8() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 8 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie7() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 7 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie6() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 6 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie5() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 5 sekund do zmiany mapy na %s -=-", nextmap) } public odliczanie4() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 4 sekundy do zmiany mapy na %s -=-", nextmap) } public odliczanie3() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 3 sekundy do zmiany mapy na %s -=-", nextmap) } public odliczanie2() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 2 sekundy do zmiany mapy na %s -=-", nextmap) } public odliczanie1() { new nextmap[128] get_cvar_string("amx_nextmap",nextmap,127) set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Pozostalo 1 sekunda do zmiany mapy na %s -=-", nextmap) } public koniecodliczania() { new nextmap[126] get_cvar_string("amx_nextmap",nextmap,125) set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 1.0) show_hudmessage(0, "-=- Zmiana Mapki na %s <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> -=-", nextmap) }