problema amx_pausecfgmenu

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 15 Apr 2015, 15:48
Detinator Steam: Da
CS Status: hellhounds.ro
Detinator server CS: da
Fond eXtream: 0
Location: italia
Has thanked: 1 time
Contact:

18 Mar 2020, 23:53

Salutare, am o problema cu serverul meu. Mi se pun 3 pluginuri pe pauza automat la schimbarea hartii si nu ii dau de cap de la ce sa fie.
Mai exact cu astea: https://imgur.com/Kc1tj0e
Luckarena.com
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2856
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 38 times
Been thanked: 436 times
Contact:

19 Mar 2020, 14:42

dmn....cum vrei să mi dau seama după o poză? dacă tu zici că ele se pun pe pauză automat,eu te cred,da vrei să ghicesc de ce se pun?postează sursele...............................................
Nu fac nimic contra cost! Faceți cerere bine detaliată aici, pe forum. Nu-mi mai dați add pe Steam doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz.
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici.
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 15 Apr 2015, 15:48
Detinator Steam: Da
CS Status: hellhounds.ro
Detinator server CS: da
Fond eXtream: 0
Location: italia
Has thanked: 1 time
Contact:

20 Mar 2020, 11:39

welcome.sma

Code: Select all

#include < amxmodx > 
#include < csstats >
#include < dhudmessage >

#define PLUGIN_VERSION	"1.0.0"

#define IP_SERVER_LICENTIAT "84.247.54.131"

new gHostName;

public plugin_init( )
{
	register_plugin( "Connect Info Hud", "1.0.1", "n0talaMa" );

	new IP_LICENTIAT[20];
   	get_user_ip(0, IP_LICENTIAT, 21, 1);

   	if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
   	{
      		server_print("IP-ul serverului nu este licentiat iar pluginul nu poate rula pe acesta!")
      		pause("a");
   	}
   	else
   	{
      		server_print("IP-ul serverului este licentiat!Pluginul ruleaza!")
   	}
	
	gHostName = get_cvar_pointer( "hostname" );
}

public client_putinserver( id )
{
	if( is_user_bot( id ) ) 
		return;
		
	set_task( 10.0, "go_info", id );
	set_task( 25.0, "fav", id )
}

public go_info( id )
{
	new s_HostName[ 64 ];
	get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );
	
	static s_Name [ 32 ];
	get_user_name( id, s_Name, charsmax ( s_Name ) );

        static stats[ 8 ], body[ 8 ];
	new s_RankPos = get_user_stats ( id, stats, body );
	new s_MaxRank = get_statsnum ( );

        set_dhudmessage( 0, 255, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 );
	show_dhudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank );
}

public fav(id)
{
	new s_HostName[ 64 ];
	get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );

        set_dhudmessage( 176, 89, 247, 0.15, 0.70, 0, 6.0, 23.0, 0.1, 0.25 )
        show_dhudmessage( id, "%s^nDon't forget to add us to your favourites.", s_HostName )
}
out_stats.sma

Code: Select all

#include < amxmodx >
#include < csx >

#define IP_SERVER_LICENTIAT "84.247.54.131"

#pragma semicolon 1

#define INT_MAX_PLAYERS_MENU 360
#define INT_MAX_PLAYERS 32

enum {
	INT_STATS_KILLS = 0,
	INT_STATS_DEATHS,
	INT_STATS_HS,
	INT_STATS_TKS,
	INT_STATS_SHOTS,
	INT_STATS_HITS,
	INT_STATS_DAMAGE
};

enum {
	INT_STATS_BOMB_DEFUSIONS = 0,
	INT_STATS_BOMB_DEFUSED,
	INT_STATS_BOMB_PLANTS,
	INT_STATS_BOMB_EXPLOSIONS
};

enum {
	INT_STATS_HIT_GENERIC = 0,
	INT_STATS_HIT_HEAD,
	INT_STATS_HIT_CHEST,
	INT_STATS_HIT_STOMACH,
	INT_STATS_HIT_LEFTARM,
	INT_STATS_HIT_RIGHTARM,
	INT_STATS_HIT_LEFTLEG,
	INT_STATS_HIT_RIGHTLEG
};

new g_iMessageSayText;

public plugin_init( ) {
	register_plugin( "STATS Evil", "1.1", "n0talaMa" );

	new IP_LICENTIAT[20];
   	get_user_ip(0, IP_LICENTIAT, 21, 1);

   	if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
   	{
      		server_print("IP-ul serverului nu este licentiat iar pluginul nu poate rula pe acesta!");
      		pause("a");
   	}
   	else
   	{
      		server_print("IP-ul serverului este licentiat!Pluginul ruleaza!");
   	}

	register_clcmd( "say", "CLIENT_COMMAND_HOOK" );
	register_clcmd( "say_team", "CLIENT_COMMAND_HOOK" );
	
	set_task( 60.0 * 5.0, "FUNC_PRINT_CHAT", 235267, _, _, "b" );
	
	g_iMessageSayText = get_user_msgid( "SayText" );
}

public CLIENT_COMMAND_HOOK( INT_PLAYER ) {
	static STRING_ARGUMENT[ 11 ];
	read_argv( 1, STRING_ARGUMENT, charsmax( STRING_ARGUMENT ) );
	
	// TOP
	if( equali( STRING_ARGUMENT, "Top BB.Indungi.Ro", 3 ) || equali( STRING_ARGUMENT, "/top", 4 ) ) {
		new HANDLE_MENU = menu_create( "Top", "FUNC_MENU_HANDLER" );
		new STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_NAME[ 32 ], STRING_TEMP[ 128 ], STRING_TEMP_NUM[ 4 ], INT_VARIABLE, STATSNUM = get_statsnum( );
		
		if( STATSNUM < INT_MAX_PLAYERS_MENU )
			INT_VARIABLE = STATSNUM;
		
		else
			INT_VARIABLE = INT_MAX_PLAYERS_MENU;
		
		for( new INT_VARIABLE2 = 0; INT_VARIABLE2 < INT_VARIABLE; INT_VARIABLE2++ ) {
			get_stats( INT_VARIABLE2, STRING_STATS, STRING_BODY, STRING_NAME, charsmax( STRING_NAME ) );
			
			num_to_str( INT_VARIABLE2 + 1, STRING_TEMP_NUM, charsmax( STRING_TEMP_NUM ) );
			
			format( STRING_TEMP, charsmax( STRING_TEMP ), "\y%s \wRank: \r%i \wKills: \r%i \wDeaths: \r%i", STRING_NAME, INT_VARIABLE2 + 1, \
				STRING_STATS[ INT_STATS_KILLS ], STRING_STATS[ INT_STATS_DEATHS ] );
			
			menu_additem( HANDLE_MENU, STRING_TEMP, STRING_TEMP_NUM, 0 );
		}
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// RANK
	if( equali( STRING_ARGUMENT, "rank" ) || equali( STRING_ARGUMENT, "/rank" ) ) {
		new INT_RANK_POS, STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_NAME[ 32 ];
		INT_RANK_POS = get_user_stats( INT_PLAYER, STRING_STATS, STRING_BODY );
		get_user_name( INT_PLAYER, STRING_NAME, charsmax( STRING_NAME ) );
		
		ColorChat( 0, "^x01Player^x03 %s^x01 rank is^x04 %i^x01/^x04%i^x01 with^x03 %i^x01 kills and^x03 %i^x01 deaths", STRING_NAME, \
			INT_RANK_POS, get_statsnum( ), STRING_STATS[ INT_STATS_KILLS ], STRING_STATS[ INT_STATS_DEATHS ] );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// STATSME
	if( equali( STRING_ARGUMENT, "statsme" ) || equali( STRING_ARGUMENT, "/statsme" ) ) {
		new INT_RANK_POS, STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_TEMP[ 128 ], STRING_STATS2[ 4 ];
		INT_RANK_POS = get_user_stats( INT_PLAYER, STRING_STATS, STRING_BODY );
		get_user_stats2( INT_PLAYER, STRING_STATS2 );
		
		new HANDLE_MENU = menu_create( "Rank", "FUNC_MENU_HANDLER" );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRank: \r%i", INT_RANK_POS );
		menu_additem( HANDLE_MENU, STRING_TEMP, "1", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wKills: \r%i", STRING_STATS[ INT_STATS_KILLS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "2", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wDeaths: \r%i", STRING_STATS[ INT_STATS_DEATHS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "3", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHeadshots: \r%i", STRING_STATS[ INT_STATS_HS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "4", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wTeam kills: \r%i", STRING_STATS[ INT_STATS_TKS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "5", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wShots: \r%i", STRING_STATS[ INT_STATS_SHOTS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "6", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHits: \r%i", STRING_STATS[ INT_STATS_HITS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "7", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wDamage: \r%i", STRING_STATS[ INT_STATS_DAMAGE ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "8", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wTotal defusions: \r%i", STRING_STATS2[ INT_STATS_BOMB_DEFUSIONS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "9", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb defused: \r%i", STRING_STATS2[ INT_STATS_BOMB_DEFUSED ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "10", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb plants: \r%i", STRING_STATS2[ INT_STATS_BOMB_PLANTS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "11", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb explosions: \r%i", STRING_STATS2[ INT_STATS_BOMB_EXPLOSIONS ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "12", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHead hits: \r%i", STRING_BODY[ INT_STATS_HIT_HEAD ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "13", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wChest hits: \r%i", STRING_BODY[ INT_STATS_HIT_CHEST ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "14", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wStomach hits: \r%i", STRING_BODY[ INT_STATS_HIT_STOMACH ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "15", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wLeftarm hits: \r%i", STRING_BODY[ INT_STATS_HIT_LEFTARM ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "16", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRightarm hits: \r%i", STRING_BODY[ INT_STATS_HIT_RIGHTARM ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "17", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wLeftleg hits: \r%i", STRING_BODY[ INT_STATS_HIT_LEFTLEG ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "18", 0 );
		
		format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRightleg hits: \r%i", STRING_BODY[ INT_STATS_HIT_RIGHTLEG ] );
		menu_additem( HANDLE_MENU, STRING_TEMP, "19", 0 );
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// STATS
	if( equali( STRING_ARGUMENT, "stats" ) || equali( STRING_ARGUMENT, "/stats" ) ) {
		new STRING_NAME[ 32 ], STRING_TEMP_NUM[ 4 ];
		new HANDLE_MENU = menu_create( "Choose the player", "FUNC_MENU_STATS_HANDLER" );
		
		for( new id = 1; id <= INT_MAX_PLAYERS; id++ ) {
			if( is_user_connected( id ) ) {
				get_user_name( id, STRING_NAME, charsmax( STRING_NAME ) );
				
				num_to_str( id, STRING_TEMP_NUM, charsmax( STRING_TEMP_NUM ) );
				
				menu_additem( HANDLE_MENU, STRING_NAME, STRING_TEMP_NUM, 0 );
			}
		}
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// DAMAGE
	if( equali( STRING_ARGUMENT, "damage" ) || equali( STRING_ARGUMENT, "/damage" ) || equali( STRING_ARGUMENT, "/dmg" ) || equali( STRING_ARGUMENT, "dmg" ) ) {
		new HANDLE_MENU = menu_create( "Damage Top", "FUNC_MENU_HANDLER" );
		new STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_NAME[ 32 ], STRING_TEMP[ 128 ], STRING_TEMP_NUM[ 4 ], INT_VARIABLE, STATSNUM = get_statsnum( );
		
		if( STATSNUM < INT_MAX_PLAYERS_MENU )
			INT_VARIABLE = STATSNUM;
		
		else
			INT_VARIABLE = INT_MAX_PLAYERS_MENU;
		
		for( new INT_VARIABLE2 = 0; INT_VARIABLE2 < INT_VARIABLE; INT_VARIABLE2++ ) {
			get_stats( INT_VARIABLE2, STRING_STATS, STRING_BODY, STRING_NAME, charsmax( STRING_NAME ) );
			
			num_to_str( INT_VARIABLE2 + 1, STRING_TEMP_NUM, charsmax( STRING_TEMP_NUM ) );
			
			format( STRING_TEMP, charsmax( STRING_TEMP ), "\y%s \wRank: \r%i \wDamage: \r%i%", \
				STRING_NAME, INT_VARIABLE2 + 1, STRING_STATS[ INT_STATS_DAMAGE ] );
			
			menu_additem( HANDLE_MENU, STRING_TEMP, STRING_TEMP_NUM, 0 );
		}
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// HEADSHOTS
	if( equali( STRING_ARGUMENT, "headshots" ) || equali( STRING_ARGUMENT, "/headshots" ) || equali( STRING_ARGUMENT, "/hs" ) ) {
		new HANDLE_MENU = menu_create( "Headshots Top", "FUNC_MENU_HANDLER" );
		new STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_NAME[ 32 ], STRING_TEMP[ 128 ], STRING_TEMP_NUM[ 4 ], INT_VARIABLE, STATSNUM = get_statsnum( );
		
		if( STATSNUM < INT_MAX_PLAYERS_MENU )
			INT_VARIABLE = STATSNUM;
		
		else
			INT_VARIABLE = INT_MAX_PLAYERS_MENU;
		
		for( new INT_VARIABLE2 = 0; INT_VARIABLE2 < INT_VARIABLE; INT_VARIABLE2++ ) {
			get_stats( INT_VARIABLE2, STRING_STATS, STRING_BODY, STRING_NAME, charsmax( STRING_NAME ) );
			
			num_to_str( INT_VARIABLE2 + 1, STRING_TEMP_NUM, charsmax( STRING_TEMP_NUM ) );
			
			format( STRING_TEMP, charsmax( STRING_TEMP ), "\y%s \wRank: \r%i \wHeadshots: \r%i", \
				STRING_NAME, INT_VARIABLE2 + 1, STRING_STATS[ INT_STATS_HS ] );
			
			menu_additem( HANDLE_MENU, STRING_TEMP, STRING_TEMP_NUM, 0 );
		}
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
	
	// EFFECT
	if( equali( STRING_ARGUMENT, "effect" ) || equali( STRING_ARGUMENT, "/effect" ) ) {
		new HANDLE_MENU = menu_create( "Effects Top", "FUNC_MENU_HANDLER" );
		new STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_NAME[ 32 ], STRING_TEMP[ 128 ], STRING_TEMP_NUM[ 4 ], INT_VARIABLE, STATSNUM = get_statsnum( );
		
		if( STATSNUM < INT_MAX_PLAYERS_MENU )
			INT_VARIABLE = STATSNUM;
		
		else
			INT_VARIABLE = INT_MAX_PLAYERS_MENU;
		
		for( new INT_VARIABLE2 = 0; INT_VARIABLE2 < INT_VARIABLE; INT_VARIABLE2++ ) {
			get_stats( INT_VARIABLE2, STRING_STATS, STRING_BODY, STRING_NAME, charsmax( STRING_NAME ) );
			
			num_to_str( INT_VARIABLE2 + 1, STRING_TEMP_NUM, charsmax( STRING_TEMP_NUM ) );
			
			format( STRING_TEMP, charsmax( STRING_TEMP ), "\y%s \wRank: \r%i \wEffect: \r%2.f%", STRING_NAME, INT_VARIABLE2 + 1, \
				float( STRING_STATS[ INT_STATS_KILLS ] ) * 1.002 / float( STRING_STATS[ INT_STATS_DEATHS ] ) * 1.002 * 30.346647 );
			
			menu_additem( HANDLE_MENU, STRING_TEMP, STRING_TEMP_NUM, 0 );
		}
		
		menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
		menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
		menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
		
		menu_display( INT_PLAYER, HANDLE_MENU, 0 );
		
		client_cmd( INT_PLAYER, "spk buttons/button9" );
	}
}

public FUNC_MENU_HANDLER( INT_PLAYER, INT_MENU, INT_ITEM )
	return PLUGIN_HANDLED;

public FUNC_MENU_STATS_HANDLER( INT_PLAYER, INT_MENU, INT_ITEM ) {
	new STRING_COMMAND[ 6 ], STRING_NAME[ 64 ], INT_ACCESS, INT_CALLBACK, INT_VICTIM;
	menu_item_getinfo( INT_MENU, INT_ITEM, INT_ACCESS, STRING_COMMAND, charsmax( STRING_COMMAND ), STRING_NAME, charsmax( STRING_NAME ), INT_CALLBACK );
	INT_VICTIM = get_user_index( STRING_NAME );
	
	if( is_user_connected( INT_VICTIM ) )
		FUNC_STATS_ME( INT_PLAYER, INT_VICTIM );
	
	else {
		ColorChat( INT_PLAYER, "^x01The player you choosed is disconnected!" );
		return PLUGIN_HANDLED;
	}
	
	return PLUGIN_HANDLED;
}

public FUNC_STATS_ME( INT_PLAYER, VICTIM ) {
	new INT_RANK_POS, STRING_STATS[ 8 ], STRING_BODY[ 8 ], STRING_TEMP[ 128 ], STRING_STATS2[ 4 ], STRING_NAME[ 32 ];
	INT_RANK_POS = get_user_stats( VICTIM, STRING_STATS, STRING_BODY );
	get_user_stats2( VICTIM, STRING_STATS2 );
	get_user_name( VICTIM, STRING_NAME, charsmax( STRING_NAME ) );
	
	new HANDLE_MENU = menu_create( "Rank", "FUNC_MENU_HANDLER" );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wUser: \r%s", STRING_NAME );
	menu_additem( HANDLE_MENU, STRING_TEMP, "1", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRank: \r%i", INT_RANK_POS );
	menu_additem( HANDLE_MENU, STRING_TEMP, "2", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wKills: \r%i", STRING_STATS[ INT_STATS_KILLS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "3", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wDeaths: \r%i", STRING_STATS[ INT_STATS_DEATHS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "4", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHeadshots: \r%i", STRING_STATS[ INT_STATS_HS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "5", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wTeam kills: \r%i", STRING_STATS[ INT_STATS_TKS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "6", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wShots: \r%i", STRING_STATS[ INT_STATS_SHOTS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "7", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHits: \r%i", STRING_STATS[ INT_STATS_HITS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "8", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wDamage: \r%i", STRING_STATS[ INT_STATS_DAMAGE ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "9", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wTotal defusions: \r%i", STRING_STATS2[ INT_STATS_BOMB_DEFUSIONS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "10", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb defused: \r%i", STRING_STATS2[ INT_STATS_BOMB_DEFUSED ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "11", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb plants: \r%i", STRING_STATS2[ INT_STATS_BOMB_PLANTS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "12", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wBomb explosions: \r%i", STRING_STATS2[ INT_STATS_BOMB_EXPLOSIONS ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "13", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wHead hits: \r%i", STRING_BODY[ INT_STATS_HIT_HEAD ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "14", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wChest hits: \r%i", STRING_BODY[ INT_STATS_HIT_CHEST ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "15", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wStomach hits: \r%i", STRING_BODY[ INT_STATS_HIT_STOMACH ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "16", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wLeftarm hits: \r%i", STRING_BODY[ INT_STATS_HIT_LEFTARM ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "17", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRightarm hits: \r%i", STRING_BODY[ INT_STATS_HIT_RIGHTARM ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "18", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wLeftleg hits: \r%i", STRING_BODY[ INT_STATS_HIT_LEFTLEG ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "19", 0 );
	
	format( STRING_TEMP, charsmax( STRING_TEMP ), "\wRightleg hits: \r%i", STRING_BODY[ INT_STATS_HIT_RIGHTLEG ] );
	menu_additem( HANDLE_MENU, STRING_TEMP, "20", 0 );
	
	menu_setprop( HANDLE_MENU, MPROP_EXITNAME, "Exit" );
	menu_setprop( HANDLE_MENU, MPROP_NEXTNAME, "Next" );
	menu_setprop( HANDLE_MENU, MPROP_BACKNAME, "Back" );
	
	menu_display( INT_PLAYER, HANDLE_MENU, 0 );
	
	client_cmd( INT_PLAYER, "spk buttons/button9" );
}

public FUNC_PRINT_CHAT( )
	ColorChat( 0, "^x04[BB.Indungi.Ro]^x01 Comenzi disponibile:^x03 top^x01,^x03 rank^x01,^x03 stats^x01,^x03 statsme^x01,^x03 damage^x01,^x03 effect^x01,^x03 headshots" );

ColorChat( iTarget, szMessage[ ], any: ... ) {
	static szBuffer[ 189 ];
	vformat( szBuffer, 188, szMessage, 3 );
	
	if( iTarget ) {
		message_begin( MSG_ONE_UNRELIABLE, g_iMessageSayText, _, iTarget );
		write_byte( iTarget );
		write_string( szBuffer );
		message_end( );
	} else {
		static iPlayers[ 32 ], iNum, i, iPlayer;
		get_players( iPlayers, iNum, "c" );
		
		for( i = 0; i < iNum; i++ ) {
			iPlayer = iPlayers[ i ];
			
			message_begin( MSG_ONE_UNRELIABLE, g_iMessageSayText, _, iPlayer );
			write_byte( iPlayer );
			write_string( szBuffer );
			message_end( );
		}
	}
}
User avatar
faKe91
Fost moderator
Fost moderator
Posts: 1423
Joined: 07 Oct 2014, 17:49
Detinator Steam: Da
CS Status: I <3 Heavy Metal
SteamID: dogseatmypancreas
Reputatie: Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Location: Republica Moldova, Chișinău
Has thanked: 8 times
Been thanked: 10 times

20 Mar 2020, 12:45

Scoate astea:

Code: Select all

#define IP_SERVER_LICENTIAT "84.247.54.131"

new IP_LICENTIAT[20];
   	get_user_ip(0, IP_LICENTIAT, 21, 1);

   	if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
   	{
      		server_print("IP-ul serverului nu este licentiat iar pluginul nu poate rula pe acesta!");
      		pause("a");
   	}
   	else
   	{
      		server_print("IP-ul serverului este licentiat!Pluginul ruleaza!");
   	}
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2856
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 38 times
Been thanked: 436 times
Contact:

20 Mar 2020, 14:09

mă gândeam că au ceva licență,modifică cu ip ul tău
Nu fac nimic contra cost! Faceți cerere bine detaliată aici, pe forum. Nu-mi mai dați add pe Steam doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz.
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici.
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 15 Apr 2015, 15:48
Detinator Steam: Da
CS Status: hellhounds.ro
Detinator server CS: da
Fond eXtream: 0
Location: italia
Has thanked: 1 time
Contact:

20 Mar 2020, 14:10

La welcome.sma la compilare apare asta: Error: Cannot read from file: "dhudmessage" on line 3


EDIT: L-am scos pluginul welcome, mai am doua nelamuriri:
Una e asta: https://i.imgur.com/wZrMKz6.png Nu apare locatia
Si a doua, nu le permite jucatorilor sa intre, am schimbat si dproto.
"reason: fake client. connection was in idle state."
User avatar
Rainq
Fost moderator
Fost moderator
Posts: 2744
Joined: 21 Jul 2015, 18:50
Detinator Steam: Da
CS Status: Busy
Detinator server CS: ZM.THEXFORCE.RO
SteamID: mrainq
Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: Bucureşti
Has thanked: 17 times
Been thanked: 28 times
Contact:

24 Mar 2020, 17:46

dudu ;x wrote:
20 Mar 2020, 14:10
La welcome.sma la compilare apare asta: Error: Cannot read from file: "dhudmessage" on line 3


EDIT: L-am scos pluginul welcome, mai am doua nelamuriri:
Una e asta: https://i.imgur.com/wZrMKz6.png Nu apare locatia
Si a doua, nu le permite jucatorilor sa intre, am schimbat si dproto.
"reason: fake client. connection was in idle state."
folosește rehlds
Image
Leul şi tigru sunt mai puternici ca lupul,dar lupul la circ nu participă.
dudu ;x
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 15 Apr 2015, 15:48
Detinator Steam: Da
CS Status: hellhounds.ro
Detinator server CS: da
Fond eXtream: 0
Location: italia
Has thanked: 1 time
Contact:

24 Mar 2020, 18:20

Rainq wrote:
24 Mar 2020, 17:46
dudu ;x wrote:
20 Mar 2020, 14:10
La welcome.sma la compilare apare asta: Error: Cannot read from file: "dhudmessage" on line 3


EDIT: L-am scos pluginul welcome, mai am doua nelamuriri:
Una e asta: https://i.imgur.com/wZrMKz6.png Nu apare locatia
Si a doua, nu le permite jucatorilor sa intre, am schimbat si dproto.
"reason: fake client. connection was in idle state."
folosește rehlds
Am schimbat,am mutat serverul la alta firma. Acum totul ruleaza bine.
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 15 guests