Custom text field?
Hi,
how i can make custom chat field? Like amx_banmenu custom reason? Thx (sry for my ban english) bye =) |
Re: Custom text field?
You want a special plugin or just a filed to enter fe. interp?
|
Re: Custom text field?
ZombieBot
What exactly do you want? |
Re: Custom text field?
for ex.
Code:
bind "." "messagemode amx_ban"same as if you'll type it through the console but without the amx_ban prefix This is it? |
Re: Custom text field?
"Custom text field" like you'd type into say but you actually type in a command ?
You just create a console command, example "CustomReason" and when you send your ban command or whatever, send cmd to client: "messagemode CustomReason", that'll show the user "CustomReason: " in top left corner of screen and he can type something there. Then you just get the input client typed in CustomReason's callback function, I recommend using read_args() instead of read_argv() if you have only one long string that could contain other double quotes... anyway, just use read_args() :P Simple. |
Re: Custom text field?
Quote:
|
Re: Custom text field?
Quote:
|
Re: Custom text field?
You can look at AMX SSBans plugin by Dorin. I did this in his plugin.
|
| All times are GMT -4. The time now is 04:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.