Jump to content

setHunterMaxHeight is it possible?


lol.com

Recommended Posts

I wanted my hunter, was much higher without limitation of time, as this script jetpapck I found ...

I tried to replace the "setJetpackMaxHeight" by "setHunterMaxHeight" most do not run .-. .Then maybe someone can help?

function setMyMaxHeight ( cmd, value ) 
    local height = tonumber ( 1000 ) -- Get the number of the value 
    if height > -20 then -- If the height is higher than -20 
        local succes = setJetpackMaxHeight ( height ) -- Set the maximum height 
        if succes then -- If it's succesfully changed 
            outputChatBox ( "You've set you maximum jetpack height to "..height.."!", 0, 255, 0 ) -- Send the client a succes message 
        else -- If there was something wrong 
            outputChatBox ( "Failed to set your maximum jetpack height to "..height.."!", 255, 0, 0 ) -- Send the client an error message 
        end 
    else -- If the given value was below -20 
        outputChatBox ( "Failed to change you jetpack height! Please use a number above -20." , 255, 0, 0 ) -- Send the client an error message 
    end 
end 
addCommandHandler ( "maxheight", setMyMaxHeight ) -- Add the command handler 

Link to comment
That's because you can't replace a function with another and expect it to work, the function 'setHunterMaxHeight' does not exist.

sorry, I'm not very good with certain commands ..

And thank you TAPL.

One more thing how do I do it all without being activated by the command "addCommandHandler (" aircraft ", setAircraftHeight)", without the command"/aircraft"?

Link to comment
height = 0 --put Your Height Here 
  
function setMyMaxHeight (  ) 
setAircraftMaxHeight ( height ) 
end 
addEventHandler("onResourceStart", getRootElement(), setMyMaxHeight) 

how to put?

function setAircraftHeight ( command, ve1 ) 
    local height = tonumber ( 2000 ) 
    if height then 
        if height > 200 then 
function setMyMaxHeight (  ) 
setAircraftMaxHeight ( height ) 
   end 
end 
addEventHandler("onResourceStart", getRootElement(), setMyMaxHeight) 

height = 2000 --put Your Height Here

function setMyMaxHeight ( )

setAircraftMaxHeight ( height )

end

addEventHandler("onResourceStart", getRootElement(), setMyMaxHeight)

????

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