#LorD-.? Posted February 24, 2017 Share Posted February 24, 2017 شباب انا عملت بوابة تفتح للعابين فقط لأنه تفتح لزومبي لاكنه لم تظبط معي ممكن مساعدة 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
_Kinan Posted February 24, 2017 Share Posted February 24, 2017 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 ) 1 Link to comment
#LorD-.? Posted February 24, 2017 Author Share Posted February 24, 2017 تمام شكران اخي اشتغل تمام Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now