Jump to content

[help]Gate


MoeezKhan

Recommended Posts

Hi All i make a moving gate it moving but i need only gang member enter this base anybody help me :(

AdminGate1 = createObject (976, 2463.6999511719, -1658.9000244141, 12.300000190735, 0, 0, 270.7      
AdminGate2 = createObject (976, 2463.6999511719, -1658.6999511719, 12.300000190735, 0, 0, 90) 
AdminportCol = createColCircle (2463.2841796875, -1659.0889892578, 13.3046875) 
AdminportCol = createColCircle (2464.1049804688, -1658.8131103516, 13.304363250732) 
  
function OpenGates (thePlayer) 
     
    moveObject (AdminGate1, 1000, 2463.8000488281, -1667.5, 12.300000190735) 
    moveObject (AdminGate2, 1000, 2463.6999511719, -1649.9000244141, 12.300000190735) 
end 
addEventHandler ("onColShapeHit", AdminportCol, OpenGates) 
  
function CloseGates (thePlayer) 
      
    moveObject (AdminGate1, 1000, 2463.6999511719, -1658.9000244141, 12.300000190735) 
    moveObject (AdminGate2, 1000, 2463.6999511719, -1658.6999511719, 12.300000190735) 
end 
addEventHandler ("onColShapeLeave", AdminportCol, CloseGates) 

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