Anyelberth Posted February 12, 2013 Posted February 12, 2013 Hello Friends... My Problem is that I want that My script, open only with administrators. function Comandos() Comandos = guiCreateWindow(278,206,255,70,"Comandos Level 1",false) Comando = guiCreateLabel(11,23,188,18,"1-) /mute \"Nombre Del Jugador\"",false,Comandos) Cerrar = guiCreateButton(203,43,43,16,"Cerrar",false,Comandos) Comando = guiCreateLabel(11,41,196,16,"2-) /unmute \"Nombre Del Jugador\"",false,Comandos) showCursor ( true ) addEventHandler ( "onClientGUIClick", Cerrar, Exit, false ) end addCommandHandler ( "MisComandos", Comandos ) function Exit() guiSetVisible (Comandos, not guiGetVisible ( Comandos ) ) showCursor ( false ) end Thank.. And Sorry For My bad English. http://oi50.tinypic.com/2po49k2.jpg[/img]
Castillo Posted February 12, 2013 Posted February 12, 2013 Well, you'll have to make a script to show it from the server side, because the functions to check if is admin are server side only. Functions you need: getPlayerAccount getAccountName isObjectInACLGroup triggerClientEvent San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Anyelberth Posted February 15, 2013 Author Posted February 15, 2013 Thanks... http://oi50.tinypic.com/2po49k2.jpg[/img]
Castillo Posted February 15, 2013 Posted February 15, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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