jokerbhz Postado August 3, 2006 Denunciar Share Postado August 3, 2006 ALGUEM PODERIA ME AJUDAR COM A CONFIGURAÇÃO DESSE ARQUIVO? E BOTAR ELE PRA RODAR NO SERVER ? SEGUE ABAIXO O SCRIPT QUE JÁ ALTEREI. // No Non-Sense High ping kicker for SM 2.6.17 // Kicks Player if they have average ping above mping setting, doens't care about x amount of rounds // author: {OmNi}Eternal // Version 2.20 // Date: 11/3/2002 // sm_menu "High Ping Kicker\\y\\R{sm_mode2&g?ON:OFF}" "sm_mode2 {sm_mode2&g?remove:set} g" sm_mode2 set g // Enable High Ping Kicker // Format of message for telling players they are privledged users alias set_hpka "sm_sayformat 255 0 0 0.30 0.60 0 6 6 0.5 1.5 4" // Format of message for Announcing people got kicked alias set_hpkb "sm_sayformat 0 255 0 0.30 0.60 0 6 6 0.5 1.5 4" // If you wish to use a password change this to the password to use (Clients must have setinfo _hppw yourpassword set in config.cfg) localinfo hppw "be-sure-to-change-this-to-something-unique" // Add WONID's surrounded by :'s //localinfo admn ":WONID1:WONID2:WONID3:WONID4:" // Add IP Addresses with :27005 after each one // Remove the // in front of the next line to activate localinfo adip ":201.78.150.172:27015:201.78.150.172:27015:201.78.150.172:27015:201.78.150.172:27015:" // Add your subnet to exclude checks on (Only good for 1, and do not use .0, leave off the subnet part just specify the network number) // Remove the // in front of the next line to activate localinfo hpsn "255.255.255.255" // Over this ping then Kick localinfo mping 120 // Below this ping then never check (FOR LAN Players and Low Latency Players) localinfo lping 50 // Display console message letting them know they won't be checked sm_register "SM_PutInServer g 2" "{I.adip&{:{p.ip}:}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged IP/Computer Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged IP/Computer Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{p.ip&{{I.hpsn}}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged Subnet/Computer Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged Subnet/Computer Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{I.admn&{:{p.aid}:}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged User Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged User Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{p.I._hppw={I.hppw}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged User Detected (Password Set), No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged User Detected (Password Set), No Ping Checks Will Be Run Against You.\\'\'" bde // Core of Script, Check the ping if they aren't flagged, aren't in the wonid list or in the ip addr list sm_register "SM_RoundStart g 2" "{%.pchk{p.uid}=1?:#}{I.adip&{:{p.ip}:}?#:{I.admn&{:{p.aid}:}?#}}{p.ping<{I.mping}?#}sm_clexec2 #{p.uid} \'echo \\'Sorry, but your ping is too high. If you feel that you had a ping spike please type retry or reconnect to get back in.\\';disconnect\';sm_log \'{p.name}<{p.uid}><{p.aid}><{p.tm.gm.name}>\' kicked due to high ping [ping \'{p.ping}]\';set_hpkb;sm_tell * \'{p.name} kicked due to high ping [ping {p.ping} over {I.mping}]\' )" bde // Flag Player ID to check Ping or Not sm_register "SM_RoundStart g 2" "{%.pchk{p.uid}>0?#}{p.ping=0?#}{p.ping<{I.lping}?{%.pchk{p.uid}=2}:{%.pchk{p.uid}=1}}" bde // Reset Player Check Flag When they Disconnect sm_register "SM_Disconnect g 2" "{%.pchk{p.uid}=0}" bde // Debug Command to Echo Players Ping (Uncomment following line if you want to see your averageping and if you are suppose to be checked each round) //sm_register "SM_RoundStart g 2" "sm_clexec2 #{p.uid} \'echo \\'hpingkick: Your Average Ping: {p.ping} | PingCheck: {%.pchk{p.uid}} (2=Never, 1=Check, 0=NoCheckYet)\\'\'" bde Link para o comentário Compartilhar em outros sites More sharing options...
ViNNi^^ Postado August 3, 2006 Denunciar Share Postado August 3, 2006 :shock: Link para o comentário Compartilhar em outros sites More sharing options...
FellipinN Postado August 3, 2006 Denunciar Share Postado August 3, 2006 nossa!!.. eu sei n.. mais keria ti desejar parabens por vc ter conseguido chegar ate ae Link para o comentário Compartilhar em outros sites More sharing options...
rafaelgpi Postado August 6, 2006 Denunciar Share Postado August 6, 2006 Parece que vc alterou corretamente. Mais recomendo vc baixar o lping pra 10, porque ai quem tem net muito rapida, nao vai conseguir entrar no server. Agora soh falta vc rodar o script. Volta pra pasta "addons\statsme" e abre o arquivo statsme.cfg. Agora eh soh colocar pra rodar o hpingkick.cfg. Coloca o seguinte comando la pro final do arquivo: exec addons/statsme/scripts/hpingkick.cfg ve ai se da certo. Link para o comentário Compartilhar em outros sites More sharing options...
jokerbhz Postado August 6, 2006 Autor Denunciar Share Postado August 6, 2006 Galera feito as correções no script ta funcionando beleza mais vou tentar trocar de lugar para autenticar o ping. Porque ta ocupando muito a porta e ta dando um pouco de lag na hora nada mostruoso mais dá quando tem muita gente com ping alto. OBSERVAÇÃO C:\Arquivos de programas\Steam\SteamApps\seu_nick\dedicated server\cstrike\addons\statsme no arquivo scriptpack.cfg vc tem que tirar o // da frente da linha scriptpacks linha do admin pack essa aqui exec addons/statsme/scriptpacks/adminpack/hpingkick.cfg // --------------------------------------------------------------------------- // StatsMe 2.8.2 Config Pack [18 March, 2004] // --------------------------------------------------------------------------- // This file is part of StatsMe (See README for more information). // Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com) // Project originally created by OLO (http://olo.counter-strike.pl) // --------------------------------------------------------------------------- // Please read the manual and the forums carefully before altering this file! // The Manual is located at http://docs.unitedadmins.com/statsme/ // The Forum can be found at http://forums.unitedadmins.com/ // --------------------------------------------------------------------------- // Kicks Player if they have average ping above mping setting, doens't care about x amount of rounds sm_menu "High Ping Kicker\\y\\R{sm_mode2&g?ON:OFF}" "sm_mode2 {sm_mode2&g?remove:set} g" sm_mode2 set g // Enable High Ping Kicker // Format of message for telling players they are privledged users alias set_hpka "sm_sayformat 255 0 0 0.30 0.60 0 6 6 0.5 1.5 4" // Format of message for Announcing people got kicked alias set_hpkb "sm_sayformat 0 255 0 0.30 0.60 0 6 6 0.5 1.5 4" // If you wish to use a password change this to the password to use (Clients must have setinfo _hppw yourpassword set in config.cfg) localinfo hppw "XXXXXX" // COLOQUE SEU PASSWORD AQUI // Add WONID's surrounded by :'s //AQUI VC CADASTRA QUEM ELE NAO CHECARA O PING // Remove the // in front of the next line to activate localinfo admn ":[Osnoia] - Jokerbhz:STEAM_0:1:XXXXXX:WONID3:WONID4:" //AQUI VOU TENTAR PRA ELE AUTENTICAR NO MEU PROVEDOR ADSL CONSEGUENTEMENTE VAI DAR UMA DIFERENCA DE ALGUNS MILLE SEGUNDOS AI MAIS CREIO QUE VAI FICAR BOM // Add IP Addresses with :27015 after each one // Remove the // in front of the next line to activate localinfo adip ":201.78.129.40:27015:201.78.129.40:27015:201.78.129.40:27015:201.78.129.40:27015:" // Add your subnet to exclude checks on (Only good for 1, and do not use .0, leave off the subnet part just specify the network number) // Remove the // in front of the next line to activate localinfo hpsn "255.255.255.255" // Over this ping then Kick localinfo mping 125 // Below this ping then never check (FOR LAN Players and Low Latency Players) localinfo lping 50 // Display console message letting them know they won't be checked sm_register "SM_PutInServer g 2" "{I.adip&{:{p.ip}:}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged IP/Computer Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged IP/Computer Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{p.ip&{{I.hpsn}}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged Subnet/Computer Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged Subnet/Computer Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{I.admn&{:{p.aid}:}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged User Detected, No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged User Detected, No Ping Checks Will Be Run Against You.\\'\'" bde sm_register "SM_PutInServer g 2" "{p.I._hppw={I.hppw}?:#}{%.pchk{p.uid}=2}set_hpkb;sm_tell2 #{p.uid} \'Privledged User Detected (Password Set), No Ping Checks Will Be Run Against You.\';sm_clexec2 #{p.uid} \'echo \\'Privledged User Detected (Password Set), No Ping Checks Will Be Run Against You.\\'\'" bde // Core of Script, Check the ping if they aren't flagged, aren't in the wonid list or in the ip addr list sm_register "SM_RoundStart g 2" "{%.pchk{p.uid}=1?:#}{I.adip&{:{p.ip}:}?#:{I.admn&{:{p.aid}:}?#}}{p.ping<{I.mping}?#}sm_clexec2 #{p.uid} \'echo \\'Sorry, but your ping is too high. If you feel that you had a ping spike please type retry or reconnect to get back in.\\';disconnect\';sm_log \'{p.name}<{p.uid}><{p.aid}><{p.tm.gm.name}>\' kicked due to high ping [ping \'{p.ping}]\';set_hpkb;sm_tell * \'{p.name} kicked due to high ping [ping {p.ping} over {I.mping}]\' )" bde // Flag Player ID to check Ping or Not sm_register "SM_RoundStart g 2" "{%.pchk{p.uid}>0?#}{p.ping=0?#}{p.ping<{I.lping}?{%.pchk{p.uid}=2}:{%.pchk{p.uid}=1}}" bde // Reset Player Check Flag When they Disconnect sm_register "SM_Disconnect g 2" "{%.pchk{p.uid}=0}" bde // Debug Command to Echo Players Ping (Uncomment following line if you want to see your averageping and if you are suppose to be checked each round) //sm_register "SM_RoundStart g 2" "sm_clexec2 #{p.uid} \'echo \\'hpingkick: Your Average Ping: {p.ping} | PingCheck: {%.pchk{p.uid}} (2=Never, 1=Check, 0=NoCheckYet)\\'\'" bde Link para o comentário Compartilhar em outros sites More sharing options...
Recommended Posts