Menu do Player com Mais Funcoes
Pack de Plugins que estao no Menu: Download [MEDIAFIRE]
Scanner: Clique Aqui [VIRUSTOTAL SCAN]
*PS: Estao todas as .SMA's exceto o do menu de alterar a Camera, que esta o amxx.
*PS²: Menu de Registros e Banco é o BkAdmin que vem em sistemas de registro.
- Código:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Menu do Player"
#define VERSION "0.1"
#define AUTHOR "TheTNT"
public plugin_init()
{
register_clcmd( "say /mdplayer","Menu")
register_clcmd( "say /mdp","Menu")
register_clcmd( "say /menudoplayer","Menu")
}
public Menu(id)
{
new menu = menu_create("\r[ \dPlayer Menu \r]^n\wStatus: \rVoce e Player :)", "menu_handler")
menu_additem(menu, "\wAuto-Bind\r[\dBinda seu Laser\r]", "1", 0)
menu_additem(menu, "\wMenu de Fichas\r[\dIr para o Menu de Fichas\r]", "2", 0)
menu_additem(menu, "\wMutar Players\r[\dMute os Players\r]", "3", 0)
menu_additem(menu, "\wAjustar sua Conexao\r[\dReduza seu PING\r]", "4", 0)
menu_additem(menu, "\wVisao Noturna\r[\dCor da Visao Noturna HUMANOS\r]", "5", 0)
menu_additem(menu, "\wLanterna\r[\dCor da Lanterna\r]", "6", 0)
menu_additem(menu, "\wVer Top15\r[\dVeja as Posicoes no Rank dos 15 Melhores\r]", "7", 0)
menu_additem(menu, "\wMudar Camera\r[\dAlterar a Visao da Camera\r]", "8", 0)
menu_additem(menu, "\wRei dos AmmoPacks\r[\dVeja quem tem Mais AmmoPacks\r]", "9", 0)
menu_additem(menu, "\wLista de Servidores\r[\dIr para o Menu de Servidores\r]", "10", 0)
menu_additem(menu, "\wRegras\r[\dLeia as Regras do Servidor\r]", "11", 0)
menu_additem(menu, "\wFazer RockTheVote\r[\dForcar a Votacao de Mapas\r]", "12", 0)
menu_additem(menu, "\wMenu de Informacoes\r[\dInformacoes e Contato\r]", "13", 0)
menu_additem(menu, "\wMenu dos Registros/Banco\r[\dDONO\r]", "14", ADMIN_LEVEL_C)
menu_additem(menu, "\wUltilitarios ZP\r[\dFuncoes Basicas do ZP\r]", "15", 0)
menu_setprop(menu, MPROP_EXITNAME, "Sair")
menu_display(id, menu, 0)
}
public menu_handler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data)
switch(key)
{
case 1:
{
client_cmd(id, "bind v +setlaser")
client_cmd(id, "bind l +dellaser")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Auto-Binds ]=- !")
client_print(id, print_center, "-=[ V = Plantar | L = Retirar ]=-")
}
case 2:
{
client_cmd(id, "say /mdf")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Menu de Fichas ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 3:
{
client_cmd(id, "say /mutemenu")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Mutar Players ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 4:
{
client_cmd(id, "rate 25000")
client_cmd(id, "cl_cmdrate 101")
client_cmd(id, "cl_updaterate 101")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Ajustar sua Conexao ]=- !")
client_print(id, print_center, "-=[ RATES CONFIGURADAS ]=-")
}
case 5:
{
client_cmd(id, "say /humanonight")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Visao Noturna dos Humanos ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 6:
{
client_cmd(id, "say /lanternanight")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Lanterna ]=- !")
client_print(id, print_center, "-=[ EXIBIDO ]=-")
}
case 7:
{
client_cmd(id, "say /top15")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Ranking do TOP15 ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 8:
{
client_cmd(id, "say /cam")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Mudar Camera ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 9:
{
client_cmd(id, "say /leader")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Rei dos AmmoPack's ]=- !")
client_print(id, print_center, "-=[ EXIBIDO ]=-")
}
case 10:
{
client_cmd(id, "say /server")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Menu de Servidores ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 11:
{
client_cmd(id, "say /regras")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Regras ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 12:
{
client_cmd(id, "say rockthevote")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Forcar Votacao de Mapas ]=- !")
client_print(id, print_center, "-=[ CONCLUIDO ]=-")
}
case 13:
{
client_cmd(id, "say /informacoes")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Menu de Informacoes e Contato ]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 14:
{
client_cmd(id, "say /bkadmin")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Menu de Registros/Banco]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
case 15:
{
client_cmd(id, "say /ultilitarios")
client_print(id, print_center, "-=[ TheExtremes ZombiePlague ]=-")
client_print(id, print_center, "-=[ Menu de Ultilitarios ZombiePlague]=- !")
client_print(id, print_center, "-=[ MENU EXIBIDO ]=-")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
Última edição por MasterUnltd em 28/12/2013, 11:29 am, editado 2 vez(es)