Menu de Cores da Visao Noturna dos Humanos
Escolha a cor Desejada
*Modo Unreally-X (r,g,b '0 , 0 , 0')
Unreally-X : Clareia apenas os Zombies, Humanos e Armas.
Código:
//*Creditos: Cido*//
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Alterar cor da Visao Noturna"
#define VERSION "1.0"
#define AUTHOR "TheTNT"
public plugin_init()
{
register_clcmd( "say /humanonight","Menu")
}
public Menu(id)
{
new Nick[33]
get_user_name(id, Nick[id], 32)
new menu = menu_create("\r-=[\w Cores de Visao Noturna \r]=-", "menu_handler")
menu_additem(menu, "\wAzul", "1", 0)
menu_additem(menu, "\wVermelha ", "2", 0)
menu_additem(menu, "\wVerde", "3", 0)
menu_additem(menu, "\wAmarelo", "4", 0)
menu_additem(menu, "\wRosa", "5", 0)
menu_additem(menu, "\wBranco^n", "6", 0)
menu_additem(menu, "\wModo Unreally-X^n^n", "7", 0)
menu_additem(menu, "\wSair", "0", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_NEVER)
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, "zp_nvg_hum_color_R 0")
client_cmd(id, "zp_nvg_hum_color_G 0")
client_cmd(id, "zp_nvg_hum_color_B 255")
menu_destroy(menu)
}
case 2:
{
client_cmd(id, "zp_nvg_hum_color_R 255")
client_cmd(id, "zp_nvg_hum_color_G 0")
client_cmd(id, "zp_nvg_hum_color_B 0")
}
case 3:
{
client_cmd(id, "zp_nvg_hum_color_R 0")
client_cmd(id, "zp_nvg_hum_color_G 255")
client_cmd(id, "zp_nvg_hum_color_B 0")
}
case 4:
{
client_cmd(id, "zp_nvg_hum_color_R 255")
client_cmd(id, "zp_nvg_hum_color_G 255")
client_cmd(id, "zp_nvg_hum_color_B 0")
}
case 5:
{
client_cmd(id, "zp_nvg_hum_color_R 255")
client_cmd(id, "zp_nvg_hum_color_G 55")
client_cmd(id, "zp_nvg_hum_color_B 255")
}
case 6:
{
client_cmd(id, "zp_nvg_hum_color_R 255")
client_cmd(id, "zp_nvg_hum_color_G 255")
client_cmd(id, "zp_nvg_hum_color_B 255")
}
case 7:
{
client_cmd(id, "zp_nvg_hum_color_R 0")
client_cmd(id, "zp_nvg_hum_color_G 0")
client_cmd(id, "zp_nvg_hum_color_B 0")
}
case 0:
{
client_print(id, print_chat, "[Extremes] Comando Executado !!! Voce Mudou a cor Da Visao Noturna !")
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}