[MENU] Take argument
This is an example. What i want to do is to make a menu line to be like a console command.
When i press 1 i must write the tag of T's and when i press 2 i must write the tag of CT's. I cand make it with hns_tag <T's tag> <CT's tag> This workd, but it's in the console and i want to know if it can be possibile to make it from the menu... PHP Code:
|
Re: [MENU] Take argument
Use the method that I use in this plugin: https://forums.alliedmods.net/showpo...34&postcount=2
|
Re: [MENU] Take argument
I really don't understand..
|
Re: [MENU] Take argument
I'm not entirely sure what you are asking but I'll assume. You need to make string vars to hold the two tags. Then use messagemode (for the client) to be able to have them input text and save that text into the corresponding variable. Then, you would need like a "Submit" button to then pass those two tags to the hns_tag command.
For an example of using messagemode you can look at Dorin's AMX SSBan plugin. |
| All times are GMT -4. The time now is 07:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.