Sweety Sprzedaj fragment swojego monitora :) //OGŁOSZENIE// status steam Status Steam na forum Monitor CRT PomaraĹ„czowa miĹ‚ość / Orange Love (2007) Akcja na mieĹ›cie 20.04. godz. 15:00 IKEA wykupiĹ‚a dziaĹ‚ki w Rzeszowie !!! Beyond a Reasonable Doubt (2009) Szkolenie ze Studium WykonalnoĹ›ci sprzedam PROJEKTOR BENQ MP723 |
SweetyDzieli temu pluginowi po wpisaniu w sayu /status dowiemy się na temat:lPingl l Nickl l Ipl l Godzina na serwerzel l Fragil l Zabicial l Pozostały Czasl l Ilo¶ć wolnych slotówl [Musisz być zalogowany aby zobaczyć linkiKliknij tutaj aby przej¶ć do rejestracji] status_monitor.sma #include <amxmodx> #include <amxmisc> // Configure this if you would chage the path of the config file new configfile[] = "addons/amxmodx/configs/status_monitor.cfg" new show_status[33] public plugin_init() { register_plugin("statusmonitor","1.1a","eXoR") register_cvar("sm_admins","0") register_cvar("sm_admin_pw","!noob!") register_clcmd("say","check_say") register_clcmd("say_team","check_say") register_concmd("status_mon","statusmonitor",ADMIN_LEVEL_A,"Pokaz Status Monitor") register_concmd("sm_admins","smadminhelp",ADMIN_LEVEL_A,"Define if the Status Monitor is only for Admins") register_concmd("sm_admin_pw","smadminhelp_pw",ADMIN_LEVEL_A,"Define a Password for using custom Admins") set_task(1.0,"status",1621,"",1,"b") server_cmd("exec %s",configfile) } public client_putinserver(id) { set_task(1.0,"serverconnect") } public serverconnect(id,level,cid) { if(get_cvar_num("sm_admins") == 0){ set_task(4.0,"checkshowstatus",id) }else{ new rem[32] new statusmon_pw_text[32] get_user_info(id,"s_m_pw",rem,31) get_cvar_string("sm_admin_pw",statusmon_pw_text,31) if(cmd_access(id,level,cid,1) || equali(rem,statusmon_pw_text)){ set_task(4.0,"checkshowstatus",id) set_task(5.0,"adminusersay",id) } } } public adminusersay(id,level,cid) { new rem[32] new statusmon_pw_text[32] get_user_info(id,"s_m_pw",rem,31) get_cvar_string("sm_admin_pw",statusmon_pw_text,31) if(cmd_access(id,level,cid,1) || equali(rem,statusmon_pw_text)) { client_print(id,print_chat,"[S-M] Pozwolenia na uzywanie status monitor") } } public smadminhelp(id,level,cid) { if(!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED new cmd1[32] read_argv(1,cmd1,31) if(cmd1[0]) { new act = str_to_num(cmd1) set_cvar_num("sm_admins",act) } new statusmonitrocvar = get_cvar_num("sm_admins") client_print(id,print_console,"sm_admins is ^"%d^"^n 0 = Wszyscy Gracze, 1 = Tylko Admini",statusmonitrocvar) return PLUGIN_HANDLED } public smadminhelp_pw(id,level,cid) { if(!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED new cmd2[32] read_argv(1,cmd2,31) if(cmd2[0]) { set_cvar_string("sm_admin_pw",cmd2) } new statusmonitrocvar_pw[32] get_cvar_string("sm_admin_pw",statusmonitrocvar_pw,31) client_print(id,print_console,"sm_admin_pw is ^"%s^"^n^n This is used for custom Admins! You must set the Password with^n setinfo ^"s_m_pw^" ^"%s^"",statusmonitrocvar_pw,statusmonitrocvar_pw) return PLUGIN_HANDLED } public checkshowstatus(id) { new rem[32] get_user_info(id,"status_monitor",rem,31) new nb = str_to_num( rem ) if(nb == 1){ show_status[id] = 1 }else{ show_status[id] = 0 } } public client_disconnect(id) { if(show_status[id] == 0) { client_cmd(id,"setinfo ^"status_monitor^" ^"0^"") }else{ client_cmd(id,"setinfo ^"status_monitor^" ^"1^"") } } public statusmonitor(id,level,cid) { if(get_cvar_num("sm_admins") == 0){ if(show_status[id] == 0) { show_status[id] = 1 client_cmd(id,"spk ^"status screen activated gogo^"") client_print(id,print_chat,"[S-M] The Status Monitor will be showed at the next server connect") client_print(id,print_center,"Status Monitor - Aktywowany") client_cmd(id,"setinfo ^"status_monitor^" ^"1^"") }else{ show_status[id] = 0 client_cmd(id,"spk ^"status screen deactivated free^"") client_print(id,print_chat,"[S-M] The Status Monitor will be longer showed at the next server connect") client_print(id,print_center,"Status Monitor Dezaktywowany") client_cmd(id,"setinfo ^"status_monitor^" ^"0^"") } }else{ new rem[32] new statusmon_pw_text[32] get_user_info(id,"s_m_pw",rem,31) get_cvar_string("sm_admin_pw",statusmon_pw_text,31) if(cmd_access(id,level,cid,1) || !equali(rem,statusmon_pw_text)) { client_print(id,print_chat,"[S-M] Przepraszamy, status serwer moze uzywac tylko admin") return PLUGIN_HANDLED }else{ if(show_status[id] == 0) { show_status[id] = 1 client_cmd(id,"spk ^"status screen activated gogo^"") client_print(id,print_chat,"[S-M] The Status Monitor will be showed at the next server connect") client_print(id,print_center,"Status Monitor - Aktywowany") client_cmd(id,"setinfo ^"status_monitor^" ^"1^"") }else{ show_status[id] = 0 client_cmd(id,"spk ^"status screen deactivated free^"") client_print(id,print_chat,"[S-M] The Status Monitor will be longer showed at the next server connect") client_print(id,print_center,"Status Monitor Dezaktywowany") client_cmd(id,"setinfo ^"status_monitor^" ^"0^"") } } } return PLUGIN_HANDLED } public status() { for(new id = 1; id < 33; id++) { if(show_status[id]) { new ping,loss new frags = get_user_frags(id) new deaths = get_user_deaths(id) new timer = get_user_time(id) new timeleft = get_timeleft() new cmin = timer/60 new csec = timer-cmin*60 new ctime[64] new nick[255] new ip[255] new cmax = get_maxplayers() new players = get_playersnum() new slots = cmax-players new Players[32] new playercount timeleft /= 60 get_players(Players, playercount) get_user_name(id,nick,254) get_user_ip(id,ip,254,1) get_user_ping(id,ping,loss) get_time("%H:%M:%S",ctime,63) set_hudmessage(100,255,0,0.50,0.02,0,0.0,1.09, 0.0, 0.0, 2) show_hudmessage(id,"Czas On-line: %d Min %d Secs^nGodzina na serwerze: %s^nPozostaly Czas: %d Min^n%d Wolne Sloty / %d Aktywnych Graczy",cmin,csec,ctime,timeleft,slots,Players) set_hudmessage(100,255,0,0.17,0.02,0,0.0,1.09, 0.0, 0.0, 3) show_hudmessage(id,"Opoznienie: %d^nFragi: %d / Zginiec: %d^nTwoje IP: %s^nTwoj nick: %s",ping,frags,deaths,ip,nick) } } } public check_say(id,level,cid) { new said[32] read_args(said,31) if (equali(said,"^"/status^"") || equali(said,"^"status^"")) statusmonitor(id,level,cid) return PLUGIN_CONTINUE } status_monitor.cfg sm_admins "0" //0 = All Users can use the Status Monitor, 1 = Only for Admins //Define the Password with that you would like to login, when you're not an Admin //Usage: Write this into the config.cfg or write it into the console: //setinfo "s_m_pw" "YOUR PASWORD" sm_admin_pw "lol" Plugin należy sobie skompilować! Standardowa Instalacja pluginów:[Musisz być zalogowany aby zobaczyć linkiKliknij tutaj aby przej¶ć do rejestracji] |
||||
Wszelkie Prawa ZastrzeĹĽone! Sweety Design by SZABLONY.maniak.pl. | |||||