Raised This Month: $ Target: $400
 0% 

player menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 03-14-2011 , 17:18   player menu
Reply With Quote #1

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?
Tonda is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode