Jump to content

Ajuda com acl


Recommended Posts

Olá

Tenho esse script atualmente de fome e sede porem ele tambem da fome e sede para os staff eu gostaria de colocar para quem tem acl "Staff" nao ter sede nem fome alguem conseguiria me ajudar porfavor?

Script Retirado da Internet

 

timeFome = 108000
timeSede = 72000

function repeatFome()
    if getElementData(localPlayer, "afkdate") == true then return end
    if getElementData(localPlayer, "Fome:Logado") == true then
        dataFome = getElementData(localPlayer, "hunger") -1
        setFome = setElementData(localPlayer, "hunger", dataFome)
    if getElementData(localPlayer, "hunger") <= 0 then
        setElementData(localPlayer, "hunger", 10)
        setElementHealth(localPlayer, 0)
    end
    end
end
setTimer(repeatFome, timeFome, 0)


function repeatSede()
    if getElementData(localPlayer, "afkdate") == true then return end
    if getElementData(localPlayer, "Sede:Logado") == true then
        Sede = getElementData(localPlayer, "sede") -1
        SetarSede = setElementData(localPlayer, "sede", Sede)
    if getElementData(localPlayer, "sede") <= 0 then
        setElementData(localPlayer, "sede", 10)
        setElementHealth(localPlayer, 0)
    end 
    end
end
setTimer(repeatSede, timeSede, 0)

function VerificarFomeRepeat()
    if getElementData(localPlayer, "Fome:Logado") == true then
        Fome = getElementData(localPlayer, "hunger")
    if Fome > 100 then
        setElementData(localPlayer, "hunger", 100)
    end
    end
end
setTimer(VerificarFomeRepeat, 50, 0)


function VerificarSedeRepeat()
    if getElementData(localPlayer, "Sede:Logado") == true then
        Sede = getElementData(localPlayer, "sede")
    if Sede > 100 then
        setElementData(localPlayer, "sede", 100)
    end
    end
end
setTimer(VerificarSedeRepeat, 50, 0)

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