Jump to content

ابي كود ضروري ضروري ضروري


Recommended Posts

  
addEventHandler("onResourceStart", resourceRoot, 
function () 
baba = createObject ( 980, x, y, z, 0, 0, 0 ) 
Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
end 
) 
  
addEventHandler("onMarkerHit", Marker, 
function (thePlayer) 
if getElementType ( thePlayer ) == "player" then 
moveObject ( baba, 5000, x, y, z ) 
    end 
end 
) 
  

Link to comment
  
addEventHandler("onResourceStart", resourceRoot, -- ماعرف لها 
function () -- وظيفة 
baba = createObject ( 980, x, y, z, 0, 0, 0 ) -- انشاء اوبجكت 
Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) -- انشاء ماركر 
end -- اغلاق الوظيفة 
) -- قوس اغلاق 
  
addEventHandler("onMarkerHit", Marker, -- عند دخول الماركر 
function (thePlayer) -- وظيفة 
if getElementType ( thePlayer ) == "player" then -- ي ليت تقول وش ذي وكيف نتعامل معها 
moveObject ( baba, 5000, x, y, z ) -- تحريك الاوبجكت 
    end -- اغلاق الوظيفة 
end -- اغلاق الوظيفة 
) -- قوس الاغلاق 
  

ياليت تشرح عشان تفهم غيرك انا فاهم شوي

Link to comment
  
addEventHandler("onResourceStart", resourceRoot, --- عند اشتغال المود 
function () -- وظيفة 
baba = createObject ( 980, x, y, z, 0, 0, 0 ) -- انشاء اوبجكت 
Marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) ---- انشاء ماركر 
end -- اغلاق الوظيفة 
) -- قوس اغلاق 
  
addEventHandler("onMarkerHit", Marker, ---- عند لمس الماركر 
function (thePlayer) -- وظيفة 
if getElementType ( thePlayer ) == "player" then ---- نتحقق من ان نوع من دخل الماركر لاعب وليس سيارة يمكن ان يكون سيارة فينفتح الباب 
moveObject ( baba, 5000, x, y, z ) -- تحريك الباب 
    end -- اغلاق الوظيفة 
end -- اغلاق التحقق 
) -- اغلاق الكود والفنشكن 
  

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