Anyelberth Posted February 12, 2013 Share 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. Link to comment
Castillo Posted February 12, 2013 Share 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 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