Hey, I wanted to know if there is any way to make the commands we put in adminmenu_custom.txt to use imput from chat in one or more parameters of the command.
Like Sourcebans, that has the option to imput the ban reason from chat I wanted to do something similar.
So I can use something like add_stamm_points <userid> <number>, where number is what I type in chat. It would be something like this:
Code:
"Add Stamm Points"
{
"cmd" "add_stamm_points #1 #2"
"execute" "server"
"1"
{
"type" "teamplayer"
"method" "name"
"title" "Player:"
}
"2"
{
"type" "chat"
"message" "Type now the number of points to add:"
}
}
The command I gave was just a example, This would be extremely useful for a lot of commands and Cvars.
If there isn't a way to do this already then I think this is a MUST for a next SourceMod release.
__________________