player menu
hi all i have menu with players ..
Code:
public player_menu(id)
{
if((is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT))
menu_players(id, CS_TEAM_CT, 0, 1, "select1", "%L", LANG_SERVER, "SELECT_PLAYERS")
return PLUGIN_CONTINUE
}
and
Code:
public selectl(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
static dst[32], data[5], player, access, callback
menu_item_getinfo(menu, item, access, data, charsmax(data), dst, charsmax(dst), callback)
player = str_to_num(data)
go_to_do(id, player)
return PLUGIN_HANDLED
}
So, all works perfectly, i have menu with players. But this menu have some keys with player nickname and last key is 0 - Exit ... I realy need one custom key with Back. So, 1,2,3,4,5,6 keys with players, 7 key with Back button and 0 key Exit.
How can i do this please?
|