Jump to content

help!


Flipi

Recommended Posts

make script it only for admins? (sorry my bad english :P)

function CheatMode(commandName,command) 
           if command=='air' then 
            if not isWorldSpecialPropertyEnabled('aircars') then 
                setWorldSpecialPropertyEnabled('aircars',true) 
                outputChatBox('aircars on') 
            else 
                setWorldSpecialPropertyEnabled('aircars',false) 
                outputChatBox('aircars off') 
            end 
        elseif command=='water' then 
            if not isWorldSpecialPropertyEnabled('hovercars') then 
                setWorldSpecialPropertyEnabled('hovercars',true) 
                outputChatBox('hovercars on') 
            else 
                setWorldSpecialPropertyEnabled('hovercars',false) 
                outputChatBox('hovercars off') 
            end 
        elseif command=='bike' then 
            if not isWorldSpecialPropertyEnabled('extrabunny') then 
                setWorldSpecialPropertyEnabled('extrabunny',true) 
                outputChatBox('extrabunny on') 
            else 
                setWorldSpecialPropertyEnabled('extrabunny',false) 
                outputChatBox('extrabunny off') 
            end 
        elseif command=='jump' then 
            if not isWorldSpecialPropertyEnabled('extrajump') then 
                setWorldSpecialPropertyEnabled('extrajump',true) 
                outputChatBox('extrajump on') 
            else 
                setWorldSpecialPropertyEnabled('extrajump',false) 
                outputChatBox('extrajump off') 
            end 
        else 
            outputChatBox('water, bike, jump, air') 
        end 
end 
addCommandHandler('cheat', CheatMode,false) 

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