josemi96 Posted August 27, 2013 Share Posted August 27, 2013 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 Link to comment
Castillo Posted August 27, 2013 Share Posted August 27, 2013 Well, you can make it trigger an event to the server side, then you check on the server side if the player is admin, and then you trigger back to the client side to show the GUI. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now