sckatchof Posted April 9, 2012 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 ?
unknooooown Posted April 9, 2012 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?
sckatchof Posted April 9, 2012 Author 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 ?!
sckatchof Posted April 10, 2012 Author 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.
Jaysds1 Posted April 10, 2012 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?
sckatchof Posted April 10, 2012 Author 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
Jaysds1 Posted April 10, 2012 Posted April 10, 2012 maybe your attaching the binding to the player that's joining
sckatchof Posted April 10, 2012 Author 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)
sckatchof Posted April 10, 2012 Author Posted April 10, 2012 Do you login to your server? yes of course.
Jaysds1 Posted April 10, 2012 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)
Jaysds1 Posted July 16, 2012 Posted July 16, 2012 past your script here You could post it here, or PM me it.
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