04/10/2018, 10:47 PM
(Última modificación: 02/11/2018, 02:36 PM por KevinJesus.)
Definicion:
Este menú Para pregamer Hace muy comodo el modo de juego con solo escribir /menu te muestra el top1 top2 top3 /rank /rs y el amxmodmenu (Solo para admins)
Comandos:
/menu
Como no me quiere Dejar subir el txt lo dejo en codigo
este es el Nombre del archivo txt que deben colocarle
Este menú Para pregamer Hace muy comodo el modo de juego con solo escribir /menu te muestra el top1 top2 top3 /rank /rs y el amxmodmenu (Solo para admins)
Comandos:
/menu
Código PHP:
#include <amxmodx>
#define PLUGIN "Menu-PREGAMER"
#define VERSION "1.0"
#define AUTHOR "KevinJesus"
public plugin_init()
{
register_plugin("Menu Basico", "1.0", "KevinJesus");
register_clcmd( "say /menu", "MenuPregamer" );
register_dictionary("Menu-Pregamer.txt")
}
public MenuPregamer(id)
{
new gMenu = menu_create("\yMenu \y[PREGAMER]", "Pregamer_menu")
menu_additem(gMenu, "\w/top1", "TOP_1")
menu_additem(gMenu, "\w/top2", "TOP_2")
menu_additem(gMenu, "\w/top3", "TOP_3")
menu_additem(gMenu, "\w/rank", "RANKING")
menu_additem(gMenu, "\w/rs", "RESET_GG")
menu_additem(gMenu, "\wAMXMODMENU", "ADMIN_MENU" ,ADMIN_KICK)
menu_display(id, gMenu, 0)
}
public Pregamer_menu(id, menu, item)
{
if ( item == MENU_EXIT )
{
menu_destroy(menu)
return PLUGIN_HANDLED;
}
switch(item)
{
case 0:
{
chatcolor(id, "^3%L ^1", LANG_PLAYER, "TOP_1")
client_cmd(id, "say /top1")
}
case 1:
{
chatcolor(id, "^3%L ^1", LANG_PLAYER, "TOP_2")
client_cmd(id, "say /top2")
}
case 2:
{
chatcolor(id, "^3%L ^1", LANG_PLAYER, "TOP_3")
client_cmd(id, "say /top3")
}
case 3:
{
chatcolor(id, "^3%L ^1", LANG_PLAYER, "RANKING")
client_cmd(id, "say /rank")
}
case 4:
{
chatcolor(id, "^3%L ^1", LANG_PLAYER, "RESETSCORE"
client_cmd(id, "say /rs")
}
case 5:
{
chatcolor(id, "^3[GS] ^1Porfavor no Abuses de tu admin")
client_cmd(id, "amxmodmenu")
}
}
return PLUGIN_HANDLED
}
stock chatcolor(id, const input[], any:...)
{
static szMsg[191], msgSayText;
if (!msgSayText)
msgSayText = get_user_msgid("SayText");
vformat(szMsg, 190, input, 3);
replace_all(szMsg, 190, "!g", "^4");
replace_all(szMsg, 190, "!y", "^1");
replace_all(szMsg, 190, "!team", "^3");
message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, .player = id);
write_byte(id ? id : 33);
write_string(szMsg);
message_end();
}
Como no me quiere Dejar subir el txt lo dejo en codigo
Cita:[es]
TOP_1 = Este Es el TOP1
TOP_2 = Este Es el TOP2
TOP_3 = Este Es el TOP3
RANKING = Este es Tu rank
RESETSCORE = Mardito Nub deja el RS
ADMIN_MENU = No Abuses de tus Privilegios
[en]
TOP_1 = This is the TOP1
TOP_2 = This is the TOP2
TOP_3 = This is the TOP3
RANKING = This is your rank
RESETSCORE = Cursed Noob leaves RS
ADMIN_MENU = Do not Abuse your Privileges
este es el Nombre del archivo txt que deben colocarle
Cita: register_dictionary("Menu-Pregamer.txt")
Cita: Kikizon2 Dijo :
Lo que deberian de aprender es a escribir, parece que escriben con el escroto en la mano.