Jump to content

Problema com script.


Recommended Posts

Como eu  posso adicionar esse comando na ACL.

 

local Superman = {}

-- Static global values
local rootElement = getRootElement()
local thisResource = getThisResource()

-- Resource events
addEvent("voar:start", true)
addEvent("voar:stop", true)

--
-- Start/stop functions
--
function Superman.Start()
	 accName = getAccountName(getPlayerAccount(hit))
 if not isObjectInACLGroup("user."..accName,aclGetGroup("Voar")) then
  outputChatBox("Você não tem permissão", player, 255,255,255, true)
  local self = Superman

  addEventHandler("voar:start", rootElement, self.clientStart)
  addEventHandler("voar:stop", rootElement, self.clientStop)
  
end
addEventHandler("onResourceStart", getResourceRootElement(thisResource), Superman.Start, false)

function Superman.clientStart()
  setElementData(client, "superman:flying", true)
end

function Superman.clientStop()
  setElementData(client, "superman:flying", false)
end
end

 

O erro é esse.

gUdtcK1.png

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