Jump to content

تعديل كود


huss97

Recommended Posts

Posted

بدون مقدمات

local gate = createObject(980, 0, 0, 5, 0, 0, 0) 
local marker = createMarker(0, 0, 0, "cylinder", 10, 255, 255, 255, 255) 
  
function moveGate(source) 
if getElementData (source,'Group' ) == 'Pro' then 
          moveObject(gate, 5000, 0, 0, 15 ) 
          setTimer(moveBack, 5000, 1) 
     end 
end 
addEventHandler("onMarkerHit", marker, moveGate) 
  
function moveBack() 
     moveObject(gate, 5000, 0, 0, 5) 
end 
  

االسالفة ان البوابة ماتتحرك

Posted
function moveGate(source_) 
    if getElementData (source_,'Group' ) == 'Pro' then 
          moveObject(gate, 5000, 0, 0, 15 ) 
          setTimer(moveBack, 5000, 1) 
     end 
end 
addEventHandler("onMarkerHit", marker, moveGate) 

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