Jump to content

Need help


SkatCh

Recommended Posts

Posted

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 

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

thx Et-win can please tell me how to add it in my script i try it but didn't work .

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

men i don't know how to put it my script that's why i asked you can you do it for me please .

Failure is simply an opportunity to begin again more intelligently - Henry Ford

Posted

Post full script ..

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

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) 

Nikola Tesla is love Nikola Tesla is light.

Email: [email protected]

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