how can i make my gui open when i type in /admin command.
Here is my code (unfinished)
window1 = guiCreateWindow(268,214,530,216,"Blazy's Admin Panel! Use /admin to close!",false)
button1 = guiCreateButton(10,27,164,82,"Flying cars ON",false,window1)
guiSetFont(button1,"sa-header")
button2 = guiCreateButton(356,118,159,86,"Admin Base",false,window1)
guiSetFont(button2,"sa-header")
button3 = guiCreateButton(184,118,164,82,"Hoover cars off",false,window1)
guiSetFont(button3,"sa-header")
button4 = guiCreateButton(12,117,164,82,"Flying cars off",false,window1)
guiSetFont(button4,"sa-header")
button5 = guiCreateButton(354,26,164,82,"Admin Godmode",false,window1)
guiSetFont(button5,"sa-header")
button6 = guiCreateButton(182,26,164,82,"Hoover Cars On",false,window1)
guiSetFont(button6,"sa-header")
function flyingcars(thePlayer)
setWorldSpecialPropertyEnabled("aircars", true)
end
addEventHandler("onClientGUIClick", button1, flyingcars)
function flyingcar(thePlayer)
setWorldSpecialPropertyEnabled("aircars", false)
end
addEventHandler("onClientGUIClick", button2, flyingcar)