Jump to content

مساعدة


#LorD-.?

Recommended Posts

شباب انا عملت بوابة تفتح للعابين فقط لأنه تفتح لزومبي لاكنه لم تظبط معي ممكن مساعدة

Doorcol = createObject(980,1033.1999511719,1181.8000488281,12.60000038147,0,0,0)
Markercol =createMarker(1034.0999755859,1183.5999755859,10.800000190735,"cylinder",7,0,0,0,0)

addEventHandler('onMarkerHit',Markercol,
function ( hitElement )
     moveObject(Doorcol,1000,1033.1999511719,1181.8000488281,6.60000038147)
     getElementType ('player')
else
     cancelEvent()
end
end
)
addEventHandler('onMarkerLeave',Markercol,
function ( hitElement )
     moveObject(Doorcol,100,1033.1999511719,1181.8000488281,12.60000038147)
end
)

Link to comment
 Doorcol = createObject(980,1033.1999511719,1181.8000488281,12.60000038147,0,0,0)
Markercol =createMarker(1034.0999755859,1183.5999755859,10.800000190735,"cylinder",7,0,0,0,0)

addEventHandler('onMarkerHit',Markercol,
function ( hitElement )
    if getElementType(hitElement) == "player" then
 	    moveObject(Doorcol,1000,1033.1999511719,1181.8000488281,6.60000038147)
     end
end
)
addEventHandler('onMarkerLeave',Markercol,
function ( hitElement )
     moveObject(Doorcol,100,1033.1999511719,1181.8000488281,12.60000038147)
end
) 

 

  • Like 1
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...