Hi , can some one help me on this?
I want to click on number of player (1/15) and it will show the player kills / deaths / Ratio
Here is the code.
PHP Code:
#include <amxmodx>
#include <csx>
#include <colorchat>
public plugin_init()
{
register_plugin("Stats new", "1.0", "meNe")
register_clcmd("say /top15", "show_top", 0)
register_clcmd("say top15", "show_top", 0);
}
public show_top(id)
{
show_menu(id, 0, "\n", 0<<1<<2<<3<<4<<5<<6<<7<<8<<9<<10<<11<<12<<13<<14<<15)
new menu = menu_create("\r[SMART TEAM PORTUGAL]^n\dTOP15","menu_handler")
new szmenu[512]
new iMax = get_statsnum()
new t_sName[32];
iMax = 15
for (new i = 0; i < iMax; i++)
{
get_stats(i, t_sName, 31);
replace_all(t_sName, 31, "<", "[");
replace_all(t_sName, 31, ">", "]");
formatex(szmenu, 511, "[\y%s\w]", t_sName);
menu_additem(menu, szmenu)
}
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public menu_handler(id, menu, item)
{
switch(item)
{
case 1:
{
}
case 2:
{
}
case 3:
{
}
case 4:
{
}
case 5:
{
}
case 6:
{
}
case 7:
{
}
case 8:
{
}
case 9:
{
}
case 10:
{
}
case 11:
{
}
case 12:
{
}
case 13:
{
}
case 14:
{
}
case 15:
{
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
Thanks.