Raised This Month: $ Target: $400
 0% 

player menu


Post New Thread Reply   
 
Thread Tools Display Modes
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-14-2011 , 18:20   Re: player menu
Reply With Quote #2

It is all done automatically by the menu system.
__________________
fysiks is offline
Tonda
Senior Member
Join Date: Aug 2009
Old 03-14-2011 , 19:40   Re: player menu
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
It is all done automatically by the menu system.
No, you dont understand i need back in first page with players. And if you are push back, will be open new custom menu
Tonda is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-14-2011 , 20:08   Re: player menu
Reply With Quote #4

Quote:
Originally Posted by Tonda View Post
No, you dont understand i need back in first page with players. And if you are push back, will be open new custom menu
If you want that then you will need to make your own menu system using the original menu method (like in the menus used in AMX Mod X).
__________________
fysiks is offline
Tonda
Senior Member
Join Date: Aug 2009
Old 03-14-2011 , 20:21   Re: player menu
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
If you want that then you will need to make your own menu system using the original menu method (like in the menus used in AMX Mod X).
i have another custom menu ... but how can add key 7 (back) for first page with players menu?
Tonda is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-14-2011 , 20:26   Re: player menu
Reply With Quote #6

Quote:
Originally Posted by Tonda View Post
i have another custom menu ... but how can add key 7 (back) for first page with players menu?
What I'm saying is that you cannot use the "New Menu System."
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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