Jump to content

Help


LeeR

Recommended Posts

function nos(source) 
    accountname = getAccountName (getPlayerAccount(source)) 
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then 
        if isPedInVehicle(source) then 
            for i,player in ipairs(getElementsByType("player")) do 
            addVehicleUpgrade(getPedOccupiedVehicle(player),1010) 
            end 
            setTimer(outputChatBox,50,1,"#ABCDEF[#ffffffNitro#ABCDEF] #ffffff"..getPlayerName (source) .. " #ffffffhas been added nitro all players!",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* You are not a admin.",source,171,205,239,true) 
    end 
end 
addCommandHandler("nos",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,"#ABCDEF[#ffffffFix#ABCDEF] #ffffff"..getPlayerName (source) .. " #ffffffhas been fixed all players!",getRootElement(),171,205,239,true) 
        end 
    else 
    outputChatBox("#ABCDEF* You are not a admin.",source,171,205,239,true) 
    end 
end 
addCommandHandler("fix",fix) 

One could modify this script to give life & vest?

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