Jump to content

HELP SCRIPT


LeeR

Recommended Posts

Posted

            end 
            setTimer(outputChatBox,50,1,"#00FFFF[sERVER] #00FFFF"..getPlayerName (source) .. " #00FFFFAdicinou Nitro no Carro de Todos os Jogadores",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darnitro",nos) 
  
  
  
function fix(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        if isPedInVehicle(source) then 
            for i,player in ipairs(getElementsByType("player")) do 
            fixVehicle(getPedOccupiedVehicle(player)) 
            end 
            setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFConsertou o Carro de Todos os Jogadores",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darconserto",fix) 
  
  
  
function setElementHealth(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        if isPedInVehicle(source) then 
            for i,player in ipairs(getElementsByType("player")) do 
            fixVehicle(getPedOccupiedVehicle(player)) 
            end 
            setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Vida Para todos os Jogadores",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darvida",setElementHealth) 
  
  
  
function setPedArmor(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        if isPedInVehicle(source) then 
            for i,player in ipairs(getElementsByType("player")) do 
            fixVehicle(getPedOccupiedVehicle(player)) 
            end 
            setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Colete Para todos os Jogadores",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darcolete",setPedArmor) 

PORTUGUÊS - BRAZIL:

Alguém poderia ajeitar este script ? não estou conseguindo usa-lo por exemplo eu digito /darvida e ele não dar , o script serve para dar reparo nos carros , nitro e para dar vida e colete para todos

English -

Could someone fix this script? I am not able to use it for example i type / darvida and he did not give the script serves to repair the cars, nitro and to give life and to vest all

Posted
  
function giveHealth(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        for i,player in ipairs(getElementsByType("player")) do 
            setElementHealth(player, 200) 
        end 
        setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Vida Para todos os Jogadores",getRootElement(),171,205,239,true) 
    else 
        outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darvida",giveHealth) 
  
  
  
function giveArmor(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        for i,player in ipairs(getElementsByType("player")) do 
            setPedArmor(player, 100) 
        end 
        setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Colete Para todos os Jogadores",getRootElement(),171,205,239,true) 
    else 
        outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darcolete",giveArmor) 
  

Please do not PM me with scripting related question nor support, use the forums instead.

Posted
  
function giveHealth(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        for i,player in ipairs(getElementsByType("player")) do 
            setElementHealth(player, 200) 
        end 
        setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Vida Para todos os Jogadores",getRootElement(),171,205,239,true) 
    else 
        outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darvida",giveHealth) 
  
  
  
function giveArmor(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        for i,player in ipairs(getElementsByType("player")) do 
            setPedArmor(player, 100) 
        end 
        setTimer(outputChatBox,50,1,"#00FFFF[#00FFFFSERVER#00FFFF] #00FFFF"..getPlayerName (source) .. " #00FFFFDeu Colete Para todos os Jogadores",getRootElement(),171,205,239,true) 
    else 
        outputChatBox("#ABCDEF* Você não é um Administrador.",source,171,205,239,true) 
    end 
end 
addCommandHandler("darcolete",giveArmor) 
  

Use local variables whenever possible. And what is that timer for?

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

I just fixed the script. The timer was already in the code, it was not done by me.

Please do not PM me with scripting related question nor support, use the forums instead.

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