sckatchof Posted April 9, 2012 Share Posted April 9, 2012 hi guys i problem i have work for admin panel and i tested it it work but when any player joins my server when i try to open it dose not show idk why ? Link to comment
unknooooown Posted April 9, 2012 Share Posted April 9, 2012 hi guys i problem i have work for admin panel and i tested it it work but when any player joins my server when i try to open it dose not show idk why ? Do you mean that YOU can't open the adminpanel when a player joins, or that THAT player can't open the adminpanel? Link to comment
sckatchof Posted April 9, 2012 Author Share Posted April 9, 2012 i have work for admin Panel only team staff can open it with click O but when i only in my server when i press O it work but when any player join my server and i try to open it dose not show idk why ?! Link to comment
sckatchof Posted April 10, 2012 Author Share Posted April 10, 2012 Post your script please. I don't have any problem in my script it work but when any player join my server the script don't work that's my problem. Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 Is it the Admin Panel that come with the MTA server? or is it a admin panel that you made for your server? Link to comment
Sparrow Posted April 10, 2012 Share Posted April 10, 2012 it's his admin panel that he made Link to comment
sckatchof Posted April 10, 2012 Author Share Posted April 10, 2012 Is it the Admin Panel that come with the MTA server? or is it a admin panel that you made for your server? my admin panel for my server when i click O it open but when any player join server when i click O don't work Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 maybe your attaching the binding to the player that's joining Link to comment
sckatchof Posted April 10, 2012 Author Share Posted April 10, 2012 maybe your attaching the binding to the player that's joining this is my bind function onresourceStart () bindKey ("o", "down", showTnsAdminpanel) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 Do you login to your server? Link to comment
sckatchof Posted April 10, 2012 Author Share Posted April 10, 2012 Do you login to your server? yes of course. Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 try this then: Client-side: addEvent("onClientLogin",true) addEventHandler("onClientLogin",root,function() bindKey ("o", "down", showTnsAdminpanel) end) Server-side: addEventHandler("onPlayerLogin",root,function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))then triggerClientEvent(source,"onClientLogin",root) end end) Link to comment
sckatchof Posted April 10, 2012 Author Share Posted April 10, 2012 Edit : still don't work . Link to comment
Jokeℝ1472771893 Posted July 16, 2012 Share Posted July 16, 2012 past your script here Link to comment
Jaysds1 Posted July 16, 2012 Share Posted July 16, 2012 past your script here You could post it here, or PM me it. 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