For testing the menu and making sure is working good
Note :
Add Your Own ranks on %allowed%
to make be able to use it
are you tired of typing player names and making then wrong then use this command
allow your staff to change player gamemode
without OP
cmd delete gm
cmd create gm
cmd edit gm 1 let %group% = playergroup(%p%)
cmd edit gm 2 let %allowed% = array(\"staff\")
cmd edit gm 3 if %group% in %allowed% then goto 6
cmd edit gm 4 message %p% §l§cInfo+ §eyou dont have the right rank for this command!
cmd edit gm 5 exit
cmd edit gm 6 let %player% = %p%
cmd edit gm 7 if varset(%args%[1]) then %player% = %args%[1]
cmd edit gm 8 %all% = onlineplayers()
cmd edit gm 31 let %form%[\"type\"] = \"custom_form\"
cmd edit gm 32 let %form%[\"title\"] = \"§c§lCHANGE PLAYER GAMEMODE\"
cmd edit gm 35 let %item1%[\"type\"] = \"dropdown\"
cmd edit gm 36 let %item1%[\"text\"] = \"§l§bSelect Player\"
cmd edit gm 37 let %item1%[\"options\"] = %all%
cmd edit gm 38 let %item2%[\"type\"] = \"dropdown"
cmd edit gm 39 let %item2%[\"text\"] = \"§e§lSelect Gamemode\"
cmd edit gm 41 let %item2%[\"options\"] = array(\"0\", \"1\", \"2\", \"3\")
cmd edit gm 53 let %content%[] = %item1%
cmd edit gm 54 let %content%[] = %item2%
cmd edit gm 58 let %form%[\"content\"] = %content%
cmd edit gm 60 let %response% = dialog(%player%, %form%)
cmd edit gm 61 if %response% = %false% then exit
cmd edit gm 62 %index% = %response%[0]
cmd edit gm 63 %name% = %all%[%index%]
cmd edit gm 64 %mode% = %response%[1]
cmd edit gm 65 if varset(%name%) and varset(%mode%) then goto 100
cmd edit gm 66 exit
cmd edit gm 100 asop /gamemode %mode% %name%
Last edited by a moderator: