I come to ask for some help
What happens is that players have a menu to give glow
As I can add to the list when I give a glow next to your name and a Tag (glow) exit.
example:
without glow:
1. zoolk
con glow
1. zoolk (glow)
How to add the tag to the side of the name
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /giveglow", "menu_glow")
}
public menu_glow(id)
{
if (cs_get_user_team(id) != CS_TEAM_CT)
{
new menu = menu_create("\rGlow Menu:", "glow");
new players[32], pnum, tempid;
new szName[32], szTempid[10];
get_players(players, pnum, "a");
for( new i = 0; i < pnum; i++ )
{
tempid = players[i];
if (cs_get_user_team(tempid) != CS_TEAM_CT)
continue;
get_user_name(tempid, szName, 31);
num_to_str(tempid, szTempid, 9);
menu_additem(menu, szName, szTempid, 0);
}
menu_display(id, menu);
return PLUGIN_HANDLED;
}
else
{
client_print(id, print_chat, "not have access to this command")
}
return PLUGIN_HANDLED;
}
public glow(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 tempid = str_to_num(data);
new szName[32], szName2[32];
get_user_name(id, szName, 31);
get_user_name(id, szName2, 31);
set_user_rendering(tempid, kRenderFxGlowShell, 255, 0, 0, kRenderNormal)
client_print(id,print_chat,"Player %s Give glow to %s", szName, szName2)
menu_destroy(menu)
return PLUGIN_HANDLED;
}
Whoever can help me thanks