#include <amxmodx> #include <colorchat> new HIGHPING_MAX = 100 // set maximal acceptable ping new HIGHPING_TIME = 6 // set in seconds frequency of ping checking new HIGHPING_TESTS = 3 // minimal number of checks before doing anything new iNumTests[33] public plugin_init() { register_plugin("High Ping Kicker","1.2.0","DynAstY") if (HIGHPING_TIME < 10) HIGHPING_TIME = 6 if (HIGHPING_TESTS < 4) HIGHPING_TESTS = 3 return PLUGIN_CONTINUE } public client_disconnect(id) { remove_task(id) return PLUGIN_CONTINUE } public client_putinserver(id) { iNumTests[id] = 0 if (!is_user_bot(id)) { new param[1] param[0] = id set_task(30.0, "showWarn", id, param, 1) } return PLUGIN_CONTINUE } kickPlayer(id) { new name[32]; get_user_name(id, name, 31) new SID = get_user_userid(id) server_cmd("amx_ban ^"5^" ^"#%d^" ^"Masz za duzy ping!^"", SID) client_cmd(id, "echo ^"[HPK] Twoj ping jest za duzy!^"") //client_cmd(id, "disconnect") ColorChat(0, GREEN, "[HPK]^x01 Gracz^x04 %s^x01 zostal rozlaczony z powodu duzego ping'u!", name) return PLUGIN_CONTINUE } public checkPing(param[]) { new id = param[0] if ((get_user_flags(id) & ADMIN_IMMUNITY)) { remove_task(id) ColorChat(0, GREEN, "[HPK]^x01 Ping nie obowiazuje graczy z immunitetem...") return PLUGIN_CONTINUE } new p, l get_user_ping(id, p, l) if (p > HIGHPING_MAX) ++iNumTests[id] else if (iNumTests[id] > 0) --iNumTests[id] if (iNumTests[id] > HIGHPING_TESTS) kickPlayer(id) return PLUGIN_CONTINUE } public showWarn(param[]) { ColorChat(param[0], GREEN, "[HPK]^x01 Gracze z pingiem wiekszym niz^x04 %d^x01 beda wyrzucani!", HIGHPING_MAX) set_task(float(HIGHPING_TIME), "checkPing", param[0], param, 1, "b") return PLUGIN_CONTINUE }
Plugin wyczytuje, wszystko pięknie ale zamiast banować, spamuje na czacie... Na stronie info o banie brak...
Wersja GmAMXBans
AMXMODX 1.8.2 - najnoszy
- Wersję serwera: steam
- Logi: brak nieprawidłowości
- amxbans.cfg
// Plik Konfiguracyjny AMXBans echo [AMXBans] laduje plik amxbans.cfg // Prefix bazy // Nota: Prefiks wpisany w sql.cfg nie jest juz uzywany przez AMXBans amx_sql_prefix "amx" //Uzywanie oznaczen gracza na tym serwerze czy na wszystkich? amxbans_flagged_all_server 1 // Wczytywanie adminów // 0 z bazy SQL, 1 = z pliku users.ini, 2 = nie laduje adminów amxbans_use_admins_file "1" // AMXBans próbuje pobierac Ip automatycznie (Tak, widac ;/) // Mozesz ustawic inne iP -np. "<ip>:<port>" amxbans_server_address "" // Wybierz styl banowanie // 1 (nowy): amx_ban <SteamID lub nick lub #authid lub IP> <Czas w minutach> <Powód> // 0 (stary): amx_ban <czas w minutach> <SteamID albo Nick albo #authid albo IP> <Powód> amxbans_use_newbancmd 1 // Maksymalna liczba graczy w Menu Rozlaczen amxbans_discon_players_saved 10 // Tak naprawdę ten cvar jest niezle pomylony niby chodzi o czas a ustawia wlasny powód bana // -1 aby wylaczyc, 0 aby wlaczyc wlasny powód bana amxbans_custom_statictime 1 // Wpisz jaka ma byc wyswietlana nazwa serwera na stronie gdy gracz dostanie bana . // np. amxbans_servernick "Mój za***isty serwer" // Pozostaw puste aby czytalo domyslna nazwe hosta z server.cfg amxbans_servernick "" // Ustaw 1 / 2 / 3 aby wlaczyc powiadomienia o debugach w logach. // nie ustawiaj na 3 bo Ci konsole zaspamuje, ustaw 2 bedzie normal amxbans_debug 0 // Nie wpisuj "http://". Plugin sam sobie to wpisze amxbans_complain_url "www.gunsaredrawn.com" // Ustaw na 1 aby mapa byla pokazywana w nazwie serwera amxbans_add_mapname_in_servername 1 // Ustaw na 1 aby w czacie HLSW byl pokazywany komunikat o banie amxbans_show_in_hlsw 1 // Pokazuje zielony napis w hud, w lewym górnym rogu, w przypadku bana amxbans_show_hud_messages 1 // Ustawia jaka flaga odpowiada za najwyzszy czas bana jaki moze ustawic admina. amxbans_higher_ban_time_admin "n" // Ustawia jaka flaga odpowiada za to aby nie byl pokazywany nick admina który zbanowal gracza amxbans_admin_mole_access "r" // Jesli admin ma ustawiony admin_mole_access, ma pokazywac jego nick przy zbanowanym graczu? amxbans_show_name_evenif_mole 1 // Pokazuje adminowi w chacie czy gracz byl wczesniej zbanowany, 0 aby wylaczyc amxbans_show_prebanned 1 // Ile razy powiadamia admina o wczesniejszym banie gracza amxbans_show_prebanned_num 2 // Obecnie nie wiadomo // Tak napisali w oryginale <img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':D' /> amxbans_default_ban_reason unknown // Czy mozna banowac w przypadku gdy gracz sie rozlaczy . 1 aby wlaczyc 0 aby wylaczyc // Jest to na koncu menu admina, Menu Rozlaczen amxbans_ban_evenif_disconnected 1- plugins.ini
// AMX Mod X plugins // Admin Base - Always one has to be activated ;admin.amxx ; admin base (required for any admin-related) ;admin_sql.amxx ; admin base - SQL version (comment admin.amxx) // Basic admincmd.amxx ; basic admin console commands amxbans_core.amxx adminhelp.amxx ; help command for admin console commands ;adminslots.amxx ; slot reservation amxbans_main.amxx multilingual.amxx ; Multi-Lingual management // Menus menufront.amxx ; front-end for admin menus ;cmdmenu.amxx ; command menu (speech, settings) plmenu.amxx ; players menu (kick, ban, client cmds.) ;telemenu.amxx; teleport menu (Fun Module required!) mapsmenu.amxx ; maps menu (vote, changelevel) // Chat / Messages adminchat.amxx ; console chat commands antiflood.amxx ; prevent clients from chat-flooding the server scrollmsg.amxx ; displays a scrolling message imessage.amxx ; displays information messages adminvote.amxx ; vote commands // Map related nextmap.amxx ; displays next map in mapcycle mapchooser.amxx ; allows to vote for next map timeleft.amxx ; displays time left on map // Configuration pausecfg.amxx ; allows to pause and unpause some plugins statscfg.amxx ; allows to manage stats plugins via menu and commands // Counter-Strike restmenu.amxx ; restrict weapons menu statsx.amxx ; stats on death or round end (CSX Module required!) miscstats.amxx ; bunch of events announcement for Counter-Strike ;stats_logging.amxx ; weapons stats logging (CSX Module required!) // Enable to use AMX Mod plugins ;amxmod_compat.amxx ; AMX Mod backwards compatibility layer // ESP, ktore admin moze wlaczyc po smierci. Menu wlacza sie wpisujac /esp_menu na say'u. admin_spec_esp.amxx // Przenoszenie nie grajacych na spectatora (z wyrzucaniem bomby). Komendy pluginu znajduja sie w pliku /cstrike/addons/amxmodx/configs/amxx.cfg afkkisss.amxx // Odliczanie do wybuchu bomby. c4timer.amxx // Obok napisu Fire in the hole! pojawia sie informacja jaki granat zostal rzucony. descriptive_fire_in_the_hole.amxx // Wyrzuca graczy ze zbyt duzym pingiem lub zbyt niskimi ustawieniami rate. Komendy pluginu znajduja sie w pliku /cstrike/addons/amxmodx/configs/amxx.cfg hpk.amxx // Zaklady na graczy, gdy zostanie 1 na 1. lastmanbets.amxx // Automatyczne wyrownywanie druzyn. Plik konfiguracyjny: /cstrike/addons/amxmodx/configs/ptb.cfg ptb.amxx afkbombtransfer.amxx ; przekazuje pak� z afka do innego gracza ad_manager.amxx ; napisy na czacie warmuppro_PL.amxx ; rozgrzewka ;] restrictnames.amxx xredirect.amxx admin_gag.amxx gamenamechanger.amxx no_advertisement.amxx swear_replacement.amxx admin_freelook.amxx wymuszanie_interpu.amxx dzwieki.amxx- modules.ini
;;; ; To enable a module, remove the semi-colon (<img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/wink.gif' class='bbc_emoticon' alt=';)' /> in front of its name. ; If it's not here, simply add it its name, one per line. ; You don't need to write the _amxx part or the file extension. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; SQL Modules usually need to be enabled manually ;; ;; You can have any number on at a time. Use ;; ;; amx_sql_type in sql.cfg to specify the default ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;mysql ;sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Put third party modules below here. ;; ;; You can just list their names, without the _amxx ;; ;; or file extension. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; These modules will be auto-detected and loaded ;; ;; as needed. You do not need to enable them here ;; ;; unless you have problems. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; fun ;engine fakemeta hamsandwich ;geoip sockets ;regex ;nvault cstrike csx ;csdm- sql.cfg - nie wywala logów że złe to po co?
Użytkownik SoLiD edytował ten post 13.04.2011 18:38