Descriere (adica ce face el mai exact): prin comanda /glow se afiseaza un meniu de "glow"-uri (5-7 culori)
Serverul ruleaza (HLDS/ReHLDS): HLDS
Versiune AMX Mod X: 1.9.0
Modul Serverului: JailBreak
Am un plugin, doar ca da eroare la compilare
- SMA | Afiseaza codul
#include <amxmodx> #include <fun> new const PLUGIN_NAME[] = "Menu de Glow"; new const PLUGIN_VERSION[] = "0.1"; new const PLUGIN_AUTHOR[] = ""; new hud[][]; #pragma semicolon 1 enum _:COLORES { NAME[32], R, G, B }; new const glow [][COLORES] = { { "Rojo", 255, 0, 0 }, { "Azul", 0, 0, 255 }, { "Amarillo", 255, 255, 0 }, { "Verde", 0, 255, 0 }, { "Violeta", 217, 0, 217 }, { "Verde Agua", 0, 255, 255 }, { "Blanco", 255, 255, 255 } }; new const prefix[] = "[AMXX]"; public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR); register_clcmd("say /glow", "menu_color_hud"); } public menu_color_hud(id) { if (!is_user_alive(id)){ client_print(id, print_chat, "%s Tienes que estar vivo", prefix); return PLUGIN_HANDLED; } static color[50]; new menu = menu_create("Menu de Glow", "show_hud"); for (new i = 0; i < sizeof hud; i++) { formatex(color, charsmax(color), "%s", hud[NAME]); menu_additem(menu, color); } menu_setprop(menu, MPROP_NEXTNAME, "Siguiente"); menu_setprop(menu, MPROP_BACKNAME, "Anterior"); menu_setprop(menu, MPROP_EXITNAME, "Salir"); menu_display(id, menu, 0); return PLUGIN_HANDLED; } public show_hud(id, menu, item) { if (item == MENU_EXIT) { menu_destroy(menu); return PLUGIN_HANDLED; } if (!is_user_alive(id)){ client_print(id, print_chat, "%s Tienes que estar vivo", prefix); return PLUGIN_HANDLED; } new r = hud[item][R]; new g = hud[item][G]; new b = hud[item]; set_user_rendering(id, kRenderFxGlowShell, r, g, b, kRenderNormal, 25); client_print(id, print_chat, "%s Elegiste el glow : %s", prefix, hud[item][NAME]); return PLUGIN_HANDLED; } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */