Jump to content

'Hovercars' problem..


Minotaur

Recommended Posts

I have one script. cars on the water but not good :(

function CheatMode(commandName,command) 
        else if command=='water' then 
            if not isWorldSpecialPropertyEnabled('hovercars') then 
                setWorldSpecialPropertyEnabled('hovercars',true) 
            else 
                setWorldSpecialPropertyEnabled('hovercars',false) 
            end 
addCommandHandler('water', CheatMode,false) 

Link to comment

test

addCommandHandler("water",  
    function ( command ) 
        if not isWorldSpecialPropertyEnabled( "hovercars" ) then 
            setWorldSpecialPropertyEnabled( "hovercars", true ) 
            outputChatBox("water car activated ! ", 124, 252, 0 ) 
        else 
            setWorldSpecialPropertyEnabled( "hovercars", false ) 
            outputChatBox("water car disabled !", 124, 252, 0 ) 
        end 
    end 
) 

Link to comment
function CheatMode(player,command) 
    if not isWorldSpecialPropertyEnabled('hovercars') then 
        setWorldSpecialPropertyEnabled('hovercars',true) 
    else 
        setWorldSpecialPropertyEnabled('hovercars',false) 
    end 
end 
addCommandHandler('water', CheatMode,false) -- You don't need to check the command if the command is "water" 

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