Advanced Check Ping

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
Mount~
Membru, skill +4
Membru, skill +4
Posts: 1688
Joined: 28 Feb 2013, 08:29
Detinator Steam: Da
CS Status: Învață să nu depinzi de nimeni.
Detinator server CS: în curând
SteamID: lichone1
Location: Bacău
Has thanked: 175 times
Been thanked: 54 times

04 Jun 2013, 10:46

RoTLC wrote:Plugin-ul mi se pare foarte folositor pentru cei care doresc să joace pe un server plin de români, fără lag. Foarte frumos, -ModeR-. Țin să te felicit pentru acest plugin, tot așa !
RoyalServer
User avatar
Errol
Membru, skill +1
Membru, skill +1
Posts: 141
Joined: 19 May 2013, 15:42
Detinator Steam: Da
CS Status: Sunt sămânţar, prin concluzie porumbel.
Detinator server CS: DR.CS32.RO
SteamID: Privat
Reputatie: Membru Club eXtreamCS (2 luni)
Location: Bistrita
Has thanked: 17 times
Been thanked: 9 times
Contact:

04 Jun 2013, 20:01

ON : Felicitari ModeR,
OFF : Baiatu` ... tu c'am ai potential ! :-w
Image
#WIZARDS to more, but I'm a hero.
-----------------------------------------------------
Lasă telefonul că ştiu actoria
Şi nu mai suna că-mi descarci bateria .


#Work only :

- [FPS Nvidia] [100%] [Public] [Here]
- [NoLag] [100%] [Public] [Here]
EDwardddd.
Membru, skill +2
Membru, skill +2
Posts: 806
Joined: 18 Jun 2010, 10:30
Detinator Steam: Da
SteamID: edwarddwd
Reputatie: Membru Club eXtreamCS (trei luni)
Fost Moderator ajutator
Nume anterioare: Elk, eDward /R/
Has thanked: 16 times
Been thanked: 49 times

10 Jun 2013, 21:24

Ala cu ML_NOTFOUND , vezi poate ai limba setata pe EN sau pe altceva in loc de RO

pune in fisierul .txt si astea:

Code: Select all

[en]
APC_WARN_1 = Ai !v%d!c ping. Iti aplic setariile anti-lag.
APC_WARN_2 = Serios ? Ti`am pus setariile anti-lag degeaba ? [!vP: !e%d!c/!e%d!c][!vW: !e%d!c/!e%d!c]
Si mai adauga si restul , nu stiu ce sa zic :-/
totalcs
Membru, skill +1
Membru, skill +1
Posts: 146
Joined: 25 Dec 2011, 12:12
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 9 times
Been thanked: 5 times
Contact:

16 Jun 2013, 14:11

Ai adaugat multe la el, l-am testat si e ok.
Olaizola
Membru, skill 0
Membru, skill 0
Posts: 6
Joined: 12 Aug 2008, 19:48
Detinator Steam: Da
CS Status: Detinator de Server C.S. 1.6 Steam-Only
Detinator server CS: Cs.Pro-League.Ro
Location: Ploiesti
Has thanked: 2 times
Contact:

25 Jun 2013, 13:44

Pus pe server, activat tot, respectate toate instructiunile, schimbat in sursa decat linia asta:

new aPc_Cmd_NoLag[ ][ ] = { "rate 25000", "fps_max 101", "cl_cmdrate 105", "developer 0", "cl_updaterate 20", "ex_interp 0.050000", "echo Ti`am aplicat cu succes setariile anti-lag." };

Functioneaza dar setarile din linia de mai sus nu se aplica nici-unui player!
De mentionat ca am serverul Steam-Only cu toate update-urile la zi!
Alta mentiune: unii playeri vechi care intotdeauna au avut ping in jur de 25 sunt depistati acum de plugin cu ping de 150, am vazut asta uitandu-ma in log-urile scrise de plugin in server!
Multumesc anticipat si astept un raspuns!
Mercic de plugin si apreciez munca depusa.

Later Edit: uite si sursa
| Afiseaza codul
#include < amxmodx >

static const PLUGIN_NAME[ ] = "Advanced Ping / Check";
static const PLUGIN_VERSION[ ] = "0.3";
static const tTag[ ] = "AdvancedPing";

new aPc_Cmd_NoLag[ ][ ] = { "rate 25000", "fps_max 101", "cl_cmdrate 105", "developer 0", "cl_updaterate 20", "ex_interp 0.050000", "echo Ti`am aplicat cu succes setariile anti-lag." };
new g_CvarTask, g_CvarMaxPing;
new tPingWarn[ 33 ];

#pragma semicolon 1

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "puMf" );
	
	g_CvarTask = register_cvar( "advanced_ping_task", "3.0" );
	g_CvarMaxPing = register_cvar( "advanced_ping_maxping", "100" );
	
	set_task( get_pcvar_float( g_CvarTask ) , "check_ping", _, _, _, "b", _ );
	
	register_dictionary( "advanced_ping_check.txt" );
}
public check_ping( )
{
	new tPing, tLoss, i_Index, tPlayers[ 32 ], tNum;
	get_players( tPlayers, tNum, "c" );
	for( new i=0;i < tNum; i++ )
	{
		i_Index = tPlayers[ i ];
		if( is_user_connected( i_Index ) )
		{
			get_user_ping( i_Index, tPing, tLoss );
			if( tPing > get_pcvar_num( g_CvarMaxPing ) )
			{
				PlayerWarn( i_Index );
			}
		}
	}
}
PlayerWarn( i_Index )
{
	new tName[ 32 ];
	get_user_name( i_Index, tName, 31 );
	new tPing, tLoss;
	get_user_ping( i_Index, tPing, tLoss );
	tPingWarn[ i_Index ]++;
	switch( tPingWarn[ i_Index ] )
	{
		case 1: 
		{ 
			puMf_Color_Chat( i_Index, "%L", LANG_PLAYER, "APC_WARN_1", tPing );
			for( new i=0;i < sizeof( aPc_Cmd_NoLag ); i++ )
			{
				client_cmd( i_Index, aPc_Cmd_NoLag[ i ] );
			}
		}
		case 2: 
		{
			puMf_Color_Chat( i_Index, "%L", LANG_PLAYER, "APC_WARN_2", tPing, get_pcvar_num( g_CvarMaxPing ), tPingWarn[ i_Index ], 3 );
		}
		default: 
		{ 
			server_cmd( "kick #%d Cand rezolvi ping`ul / lag`ul revin`o la joc.[W: %d/%d]", get_user_userid( i_Index ), tPingWarn[ i_Index ], 3 ); 
		}
	}
	log_to_file( "advanced_check_ping.log", "-= %s =- A fost prins cu PING -= %d =- si LOSS -= %d =-", tName, tPing, tLoss );
}
public client_disconnect( i_Index ) { tPingWarn[ i_Index ] = 0; }
public client_putinserver( i_Index ) { tPingWarn[ i_Index ] = 0; }

stock puMf_Color_Chat( const id, const input[], any:... )
{
	new tCount = 1, tPlayers[ 32 ];
	static tMsg[ 320 ], tMsg2[ 320 ];
	vformat( tMsg, 190, input, 3 );
	format( tMsg2, 190, "!c[!v%s!c] %s", tTag, tMsg );
	replace_all( tMsg2, 190, "!v", "^4" ); 
	replace_all( tMsg2, 190, "!c", "^1" );
	replace_all( tMsg2, 190, "!e", "^3" );
	replace_all( tMsg2, 190, "!e2", "^0" );
	if( id )
	{
		tPlayers[ 0 ] = id;
	}
	else
	{
		get_players( tPlayers, tCount, "ch" );
	}
	for( new f=0;f < tCount; f++ )
	{
		if( is_user_connected( tPlayers[ f ] ) )
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, tPlayers[ f ] );
			write_byte( tPlayers[ f ] );
			write_string( tMsg2 );
			message_end( );
		}
	}
}
Last edited by Olaizola on 25 Jun 2013, 15:44, edited 1 time in total.
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

25 Jun 2013, 15:18

Salut, lasa`mi sursa unde ai modificat setariile.
Retras
Olaizola
Membru, skill 0
Membru, skill 0
Posts: 6
Joined: 12 Aug 2008, 19:48
Detinator Steam: Da
CS Status: Detinator de Server C.S. 1.6 Steam-Only
Detinator server CS: Cs.Pro-League.Ro
Location: Ploiesti
Has thanked: 2 times
Contact:

25 Jun 2013, 16:04

Salut, scuze de dublu post dar am dat edit mai sus cu sursa modificata exact la linia de care iti vorbeam!
Merci mult!
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

25 Jun 2013, 16:35

Salut. Scuze nu am fost atent. Din cate stiu, numai poti executa comenzi pe jucatori cu steam. (de la ultimul update)
Retras
Post Reply

Return to “Pluginuri eXtream”

  • Information