Jump to content

script gate


sumariello

Recommended Posts

help pls T_T
if getElementModel(thePlayer) == 287 then 

You just need to set a "then" after the getElementModel stuff. So it would look like this:

function openbasegates(thePlayer) 
if getElementModel(thePlayer) == 287 then 
-- you code moveobject stuff 
end 
end 
addEventHandler('onColShapeHit', basecol, openbasegates) 
  
  
function closebasegates(thePlayer) 
if getElementModel(thePlayer) == 287 then 
-- you code moveobject stuff 
end 
end 
addEventHandler('onColShapeLeave', basecol, closebasegates) 
  
  
  
  
  
  
  

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