Hi first of all sorry for my English (GOOGLE), well this is my problem, I made a Gui Editor panel, and I can not do that you turn to enter the server, this is a single panel for administrators which gives them a skin, and users to enter the server will see this panel.
The question is how do I make so that only appear to the administrators, or do not appear to enter the server?
thanks
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
okno = guiCreateWindow(181, 124, 493, 466, "Anonymous skin system by: Josemi96", false)
guiWindowSetSizable(okno, false)
guiSetAlpha(okno, 0.86)
GUIEditor.label[1] = guiCreateLabel(63, 49, 384, 108, "PANEL YO fèmen SA A TANPRI METE TOUNEN /NOULEGION", false, okno)
anonym = guiCreateButton(181, 109, 126, 65, "SKIN", false, okno)
guiSetProperty(anonym, "NormalTextColour", "FFAAAAAA")
addEventHandler ( "onClientGUIClick", anonym, anonymm)
end
)
function gui()
if (guiGetVisible (okno) == false) then
guiSetVisible(okno, true)
showCursor(true)
else
guiSetVisible(okno, false)
showCursor(false)
end
end
addCommandHandler ("somoslegion", gui)
function anonymm()
setElementModel ( localPlayer, 34)
end