Make a menu that shows up names
1 Attachment(s)
I made a plugin that changes a players team in counter-strike.
And i want to add a menu on it too. (called amx_team_menu) Like the first menu shows all names on the server, and when you choose a player you can choose if you want him to go on ct, terror or spectate. Ive read the menu help in amxmodx doc a lot of times, but i just dont get this menu to work. Can somebody help me make this menu? And here is the plugin that i want to add a menu on if that helps... |
Would this AMX(X) Menu Tutorial by Xeroblood help? :)
|
Thats for amx? And ive read somewhere that the "add" thing is really waste of code. You can make it with much less code and and "add" maybe crashes the server. am i right?
----------------------------------- EDIT: Thats just a one page menu. What im looking for is a multi-menu tutorial. Like the first page shows all the name on the server, and when you choose a name you get a new menu where you can choose to set the player in counter-terrorists, terrorists or spectate. Thanks for the help anyway peli. ---------------------------------- EDIT AGAIN: Ok i found a multi-menu tutorial there too, but its still for amx and it doesnt stand anything about how to make the menu show up all the names on the server... |
Just an example, I didnt actually test this, but it is pretty straight-forward:
Code:
I hope that helps! |
It works :D thanks
It shows up the names and when you click on it nothing happends. Can you help me add that too? Here is the command lines to change team if that helps: Terror: Code:
Code:
Code:
EDIT: And make the player die when the command is used. |
...xeroblood?
|
It should print the name of the player you chose..
To make it change a players team, you would edit this function: Code:
Where iIndex is the ID of the chosen player... Now, you want the player to be changed to a different team?? Which team?? Are you gonna pick the team for them, or just put them on opposite team? |
I want to choose a team for them. I want to choose Counter-Terrorists, Terrorists or Spectate. The commands to do that did i say in other post...
Quote:
|
...xeroblood???? :lol:
|
You will need a secondary menu for that... After choosing a player, you should open a second menu to display the choices of teams..
I will whip something together for ya later on, but you will be happier if you're able to figure it out yourself... Either way, I'm kinda busy ATM, so I will throw something together later on... |
| All times are GMT -4. The time now is 19:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.