Platinum Posted November 25, 2007 Report Share Posted November 25, 2007 Sevik atakl Ka var izdarit ta lai ka cilveks ienak ar pingu lielaku nevis vinju kick - bet gan ban uz 10 min! Man ir amxbans 5.0 Un vel ka var nomainit gan to tekstu ko rada kad uzliek banu kur jaspiez "OK" gan ari to kad tevi izemet no servera un "console" rakstit reason un vis parejais! Link to comment Share on other sites More sharing options...
Kiwix Posted November 25, 2007 Report Share Posted November 25, 2007 Tajā plugina.sma failā nevar vnk pārlabot amx_kick uz amx_banip ? Link to comment Share on other sites More sharing options...
Platinum Posted November 25, 2007 Author Report Share Posted November 25, 2007 TAD lludzu norad kur tiesi jamaina? /* AMX Mod script * * (c) 2002-2003, DynAstY * This file is provided as is (no warranties). * * Players with immunity won't be checked */ #include <amxmodx> new HIGHPING_MAX = 125 // set maximal acceptable ping new HIGHPING_TIME = 5 // set in seconds frequency of ping checking new HIGHPING_TESTS = 5 // 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 < 15) HIGHPING_TIME = 15 if (HIGHPING_TESTS < 4) HIGHPING_TESTS = 4 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 uID = get_user_userid(id) server_cmd("banid 1 #%d", uID) client_cmd(id, "echo ^"[HPK] atvaino tev kick pa lielu ping, nac velak...^"; disconnect") client_print(0, print_chat, "[HPK] %s izmests par lielu ping!", name) return PLUGIN_CONTINUE } public checkPing(param[]) { new id = param[0] if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) { remove_task(id) client_print(id, print_chat, "[HPK] ping parbaude - tev ir imunitate...") 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[]) { client_print(param[0], print_chat, "[HPK] Speletajas ar pingu virs %dms tiks izmests!", HIGHPING_MAX) set_task(float(HIGHPING_TIME), "checkPing", param[0], param, 1, "b") return PLUGIN_CONTINUE } Link to comment Share on other sites More sharing options...
remix.cc Posted November 25, 2007 Report Share Posted November 25, 2007 kickPlayer(id) { new name[32] get_user_name(id, name, 31) new uID = get_user_userid(id) server_cmd("banid 1 #%d", uID) laikam sheit.. Link to comment Share on other sites More sharing options...
Platinum Posted November 25, 2007 Author Report Share Posted November 25, 2007 nu jaa es ar ta domaju! Bet ka tad tiesi mainit - tur jau ir pateikt ka bannde bet vinjs vnk kick! Link to comment Share on other sites More sharing options...
*jancis38* Posted November 25, 2007 Report Share Posted November 25, 2007 tak ir arī hpk, kurš liek banu uz 5 min. pameklē @ amxmodx.org Link to comment Share on other sites More sharing options...
remix.cc Posted November 25, 2007 Report Share Posted November 25, 2007 (edited) netesteju bet pamegini tada veida...: kickPlayer(id) { new name[32] get_user_name(id, name, 31) client_cmd("amx_banip 10 %s PING, name") client_cmd(id, "echo ^"[HPK] atvaino tev kick pa lielu ping, nac velak...^"; disconnect") client_print(0, print_chat, "[HPK] %s izmests par lielu ping!", name) return PLUGIN_CONTINUE } amx_banip laiks niks iemesls? itka ta bija, vai ne? ja gadijuma tu parveidoji no amx_banip uz xbanip, tad pamaini boldeetu rindinu pats... ja nesanak raxti... Edited November 25, 2007 by remix.cc Link to comment Share on other sites More sharing options...
Platinum Posted November 25, 2007 Author Report Share Posted November 25, 2007 nekaa! vnk dzekam kick un viss! Link to comment Share on other sites More sharing options...
Firefox2007 Posted November 25, 2007 Report Share Posted November 25, 2007 Mekletaju izmantot vajadzeja !!! http://www.gign.lv/forum/index.php?showtop...igh+ping+banner Link to comment Share on other sites More sharing options...
Platinum Posted November 25, 2007 Author Report Share Posted November 25, 2007 Par hpk vis skaidrs aizgaja1 Bet so lietu neviens nezin? Un vel ka var nomainit gan to tekstu ko rada kad uzliek banu kur jaspiez "OK" gan ari to kad tevi izemet no servera un "console" rakstit reason un vis parejais! Link to comment Share on other sites More sharing options...
JanchS Posted November 25, 2007 Report Share Posted November 25, 2007 Par to O.K es nezinu, tas manlieks ir paša cs`a failos, bet nu par consoli ir iekš \addons\amxmodx\data\lang\ un tur tajā amxbans.txt ir attiecīgās rindiņas kuras var pārtulkot, bet nu bez garumzīmēm, un tulko tikai attiecīgos vārdus, ja kko lieku izdzēsisi tev tur var nobrukt viss!! Link to comment Share on other sites More sharing options...
Platinum Posted November 25, 2007 Author Report Share Posted November 25, 2007 janch to es zinu1 bet tiesi kura negribas kaut ka nojucinat amxbanu! Link to comment Share on other sites More sharing options...
Fragrancer Posted November 27, 2007 Report Share Posted November 27, 2007 kickPlayer(id) { new name[32] get_user_name(id, name, 31) client_cmd("amx_banip 10 %s PING, name") client_cmd(id, "echo ^"[HPK] atvaino tev kick pa lielu ping, nac velak...^"; disconnect") client_print(0, print_chat, "[HPK] %s izmests par lielu ping!", name) return PLUGIN_CONTINUE } amx_banip laiks niks iemesls? itka ta bija, vai ne? ja gadijuma tu parveidoji no amx_banip uz xbanip, tad pamaini boldeetu rindinu pats... ja nesanak raxti... cleint_cmd nevar nekādīgi būt ....... server_cmd pie ban ..... ne jau spēlētājs pats sevi banos Link to comment Share on other sites More sharing options...
remix.cc Posted November 28, 2007 Report Share Posted November 28, 2007 omg.. ka es kko tadu uzrakstiiju.. server_cmd jabuut.. laikam uz atro tad raxtiiju.. XD bet cik sapratu problemu jau atrisinaja... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now