baba Posted May 5, 2014 Share Posted May 5, 2014 سلام عليكم ابي كود بوابه تفتح وتسكر لي اي حد ارجو الرد ضروري وتوضيح Link to comment
™!>VàLéNTiNô<!™ Posted May 5, 2014 Share Posted May 5, 2014 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
i,xAhmed Posted May 5, 2014 Share Posted May 5, 2014 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
shwaeki Posted May 5, 2014 Share Posted May 5, 2014 if getElementType ( thePlayer ) == "player" then هاي تتحق انو يلي دخل الماركر لاعب Link to comment
™!>VàLéNTiNô<!™ Posted May 5, 2014 Share Posted May 5, 2014 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
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