Hi everybody.
i am trying to make a custom admin menu:
Code:
"Commands"
{
"Example"
{
"cmd" "#1 #2"
"admin" "sm_kick"
"1"
{
"type" "list"
"title" "Example"
"1" "sm_sample1"
"1*" "sm_kick"
"2" "sm_sample2"
"2*" "sm_ban"
}
"2"
{
"type" "player"
"title" "Select a Player :"
}
}
}
}
i wanna have nothing for sample1 means use it like sm_sample1 and wanna include players for sample2 like sm_sample2 #1
i tried more than 10 method to make this but faild that example was the last method i wrote and deleted extra text from it.
i wish it was possible to use if/else commands e.g:
Code:
"2"
{
if (#1==sm_sample2)
"type" "player"
else
""
}
something like this but it is not possible
also this one didnt work
Code:
"1"
{
"type" "list"
"1" "sm_sample2 #1"
"1" {"type" "player"}
}
also this one
Code:
"example"
{
"sample1"
{
"cmd" "sm_sample1"
}
"sample2"
{
"cmd" "sm_sample2 #1"
"1"
{"type" "player"}
}
}
and somemore
If you know how can i add player list to one commands list and do not include it to other commands post it here thanks
.