Player Menu
Can anyone help me with making and how the player showing menu's work. Like the kick menu amxx comes with. Just the ones that show all the names of players in your server at the time. I have already looked at the code for them, but i don't understand the multilingual parts and some other things.
For all you people that don't want to find it, here is just the kick menu Code:
|
Your asking for the code to get the players in your server?
You could look in the include files, but you may not like that, because, well, no one ever does. =\ If that's the case, I'd think it's: Code:
get_players(g_menuPlayers[id],g_menuPlayersNum[id])/* Returns number of players put in server. * If flag is set then also connecting are counted. */ native get_playersnum(flag=0); /* Sets indexes of players. * Flags: * "a" - don't collect dead players. * "b" - don't collect alive players. * "c" - skip bots. * "d" - skip real players. * "e" - match with team. * "f" - match with part of name. * "g" - ignore case sensitivity. * Example: Get all alive CTs: get_players(players,num,"ae","CT") */ native get_players(players[32], &num ,const flags[]="", const team[]=""); I think that's what you need. |
No, i know how to do that. I dont really understand a lot of the extra stuff in the menu above. I want to make a menu that shows all players and can do commands to them. Like the amx_kickmenu. I do not know what is part of the multilanguage part of the menu either. All I need help with is the displaying part really, I understand the other parts.
|
I learned it from the AMX(not x) scripting forums when I first started:
http://djeyl.net/forum/index.php?showtopic=27288 You could also check out what the website has to say about the functions associated with the menus: http://www.amxmodx.org/funcwiki.php?go=inc&id=1 |
I already know the functions and how to make a regular menu, but like when you use the %L or the color part, I am confused a little. I would like to make a normal menu that shows all the players in the server and when pressing the button corresponding to their name, a command would be done to them. So basically the kick menu but without multilinguall stuff and colored menu's. I already copied it and made a menu but it doesn't seem to work and it says ML_not found or something next to the title. I found out that means you r missing part of the dictionary.
|
well, i got the menu working, but it still says the thing next to the title. If somebody doesn't want to explain something, can you just rewrite the display part of the menu in my first post, but with no multilingual or color stuff in it?
|
Search the forums for %L (if the search will accept % characters) to figure out how to use language files, although it might be somewhere on the website. There are a few colors, like \w (white) \y (yellow) \r (red), and probably others, but I've never tried. You would use them like: "\yYellow Part - \rRed Part"
|
ya, i have searched already. Cant find anything relating to it.
|
| All times are GMT -4. The time now is 19:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.