Jump to content

Abrir por acl


Recommended Posts

Olá, tentei colocar um sistema de fabricar armas por acl porém não consegui. Podem me ajudar?

 

function abrir1 (thePlayer)
	if (thePlayer) and (getElementType (thePlayer) == "player") then
			triggerClientEvent (thePlayer, "tec9gui", thePlayer) 
		end
end
addEventHandler ("onMarkerHit", tec9, abrir1)
function abrir1 ()
    if (painel) then
        removeEventHandler("onClientRender", root, Tec9gui)
        painel = false
    else
        addEventHandler("onClientRender", root, Tec9gui)
        painel = true
    end
end
addEvent ("tec9gui", true)
addEventHandler("tec9gui", root, abrir1)

 

Link to comment

Só altere a ACL, coloquei como admin, mas deve funcionar 

function abrir1 (thePlayer)
	 if (thePlayer) and (getElementType (thePlayer) == "player") then
		 if (isGuestAccount(getPlayerAccount(thePlayer)) == false) and isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then
			 triggerClientEvent (thePlayer, "tec9gui", thePlayer) 
		 end
	 end
end
addEventHandler ("onMarkerHit", tec9, abrir1)

 

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...