Jump to content

gates in interior


jirco

Recommended Posts

hello you guys i wanted to put a gate in a interior but i don't now how that i have tu put it inside the script

this is a script of a other gate because i don't have the script for the interior on my laptop but please tell me via this script how that i do that :(

    local gate = createObject(7709, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 358) 
    megusta = false 
      
    addCommandHandler("gate", 
    function (source) -- i define source here (this needed for server side only) 
        if ( getTeamName ( getPlayerTeam ( source ) ) == "CIA" ) then 
            if (megusta == false) then 
                moveObject(gate, 2500, -2122.5, 381.89999389648, 30, 0, 0, 0 ) 
                megusta = true 
            elseif (megusta == true) then 
                moveObject(gate, 2500, -2122.5, 381.89999389648, 35.700000762939, 0, 0, 0 ) 
                megusta = false 
        else 
            outputChatBox( "you're not in the CIA!", source, 0, 255, 0, true ) 
            end 
        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...