HUD-based player input prompt
I've seen in other plugins that a HUD-based input prompt is possible.
I need to prompt the player for a float, but I cannot find the function necessary to do this. Can anyone point me in the right direction? |
Re: HUD-based player input prompt
Well, the command: "messagemode yourcmd" can act like a say message but it sends the data to "yourcmd" like you'd type it in console "yourcmd whatever you said in messagemode".
So if you want a float, you can do str_to_float() at the string received, you can't get direct float. |
Re: HUD-based player input prompt
Ah, that's of great help. I hadn't thought of doing that.
Just to be clear, that message appears at the top-left of the HUD, yes? I want to be able to have it displayed as "Question: <input>". |
Re: HUD-based player input prompt
Well it actually displays the command the player's sending to... so if you want it to be displayed as "Question" you need to make the command "Question" :}
|
Re: HUD-based player input prompt
A bit inelegant, but I can work with that.
Thanks for your help. |
| All times are GMT -4. The time now is 20:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.