Hello, i make custom admin ban menu to silence. Just works badly
adminmenu_custom.txt -
This is a menu for classic bans and works properly, giving it the right length and reasons.
PHP Code:
"Ban menu"
{
"admin" "sm_ban"
"Rules"
{
"cmd" "sm_ban #1 #2 @3"
"admin" "sm_ban"
"execute" "admin"
"1"
{
"type" "player"
"title" "Select player:"
}
"2"
{
"type" "list"
"title" "Time:"
"1" "30"
"1." "30 minutes"
"2" "60"
"2." "1 hour"
"3" "120"
"3." "2 hours"
}
"3"
{
"type" "list"
"title" "Reason:"
"1" "[Ban] TEST"
"1." "Test ban"
}
}
}
And this is the menu on Silence ban, it is exactly the same as the classic ban menu. Just sm_ban is sm_silence
And when I select Silence ban, it only gives you a 30 minute ban and the reason looks like this:
"30" [Ban] TEST
PHP Code:
"Ban menu"
{
"admin" "sm_ban"
"Chat Rules"
{
"cmd" "sm_silence #1 #2 @3"
"admin" "sm_ban"
"execute" "admin"
"1"
{
"type" "player"
"title" "Select player:"
}
"2"
{
"type" "list"
"title" "Time:"
"1" "30"
"1." "30 minutes"
"2" "60"
"2." "1 hour"
"3" "120"
"3." "2 hours"
}
"3"
{
"type" "list"
"title" "Reason:"
"1" "[Ban] TEST"
"1." "Test ban"
}
}
}
Why does he do that? Thanks for support and sorry for my bad english.