Jump to content

Freeroam only wanter[HELP]


Sande

Recommended Posts

Hey, i try to make this freeroam only, but the error message bugs. debugscript says: end expected to close if online 6.

  
addCommandHandler("water",  
    function ( command ) 
        local team = getPlayerTeam (localPlayer) 
        if getTeamName (team) == "Freeroam" then 
   if not isWorldSpecialPropertyEnabled( "hovercars" ) then 
    setWorldSpecialPropertyEnabled( "hovercars", true ) 
    outputChatBox("Water drive: on ", 255, 255, 0 ) 
   end 
  else 
   setWorldSpecialPropertyEnabled( "hovercars", false ) 
   outputChatBox("Water drive: off", 255, 0, 0 ) 
  else    
   outputChatBox("Sinun täytyy olla freeroam tiimissä käyttääksesi lentotoimintoa", 255,0,0) 
  end 
  end 
  end 
) 
  

Link to comment
addCommandHandler("water", 
function() 
    local team = getPlayerTeam(localPlayer) 
    if getTeamName(team) == "Freeroam" then 
        if not isWorldSpecialPropertyEnabled("hovercars") then 
            setWorldSpecialPropertyEnabled("hovercars", true) 
            outputChatBox("Water drive: on ", 255, 255, 0) 
        else 
            setWorldSpecialPropertyEnabled("hovercars", false) 
            outputChatBox("Water drive: off", 255, 0, 0) 
        end 
    else   
        outputChatBox("Sinun t?ytyy olla freeroam tiimiss? k?ytt??ksesi lentotoimintoa", 255, 0, 0) 
    end 
end) 

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