Jump to content

Need help


SkatCh

Recommended Posts

hi guys please how can i make admin they don't need to pay 1000 when they fix there cars here :

a part from my script

  
function(id) 
if getPlayerMoney(source) >= tonumber(1000) then 
        takePlayerMoney ( source, 1000 ) 
        local vehicle = getVehicleByID(id) 
        if isElement(vehicle) then 
            fixVehicle(vehicle) 
            setVehicleEngineState(vehicle, true) 
            if isVehicleDamageProof(vehicle) then 
                setVehicleDamageProof(vehicle, false) 
            end 
        end 

Link to comment

Here is something you can work from.

function DMGPROOF (plr) 
    if plr then 
        local car = getPedOccupiedVehicle(plr) 
        if car then 
            setVehicleDamageProof(car,true) 
        else 
            outputChatBox("You are not in a car!",plr) 
        end 
    end 
end 
addCommandHandler("DMG", DMGPROOF) 

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