Jump to content

Help with my resource!


josemi96

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...