Using connected players menu
In my plugin, I have some submenus where you can afterwards select a player, I've done it like that:
PHP Code:
|
Re: Using connected players menu
I'm using this when i have to make a player menu :
PHP Code:
|
Re: Using connected players menu
Quote:
|
Re: Using connected players menu
Something like this ?
PHP Code:
PHP Code:
|
Re: Using connected players menu
Error: Argument type mismatch (argument 4)
for new menu = MakePlayerMenu(id, "something", "menu_handler_something", "ch") // ch don't collect bot and hltv |
Re: Using connected players menu
I'm sure Connor meant to post this line instead:
Code:
|
Re: Using connected players menu
Quote:
But i think it's better to use the second i gave. |
Re: Using connected players menu
I didn't really understand what exactly the defines do, could you tell me that?
|
Re: Using connected players menu
Same as cmd_target does except that this is for players that you want to put or not in menu, depending on actions you want to perform on players, you may want to not collect dead players, or bots, or admins with ADMIN_IMMUNITY flag.
PLMENU_ALLOW_SELF allows, if PLMENU_OBEY_IMMUNITY is set and if you have ADMIN_IMMUNITY flag, to add yourself. |
Re: Using connected players menu
Ok connor, I made this now, I didn't want to have any flags in this example, since you said flags are optional. You had something twice, iNum I think + you had iPlayer instead of id. Anyway, this doesn't show me anything:
PHP Code:
|
| All times are GMT -4. The time now is 14:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.