3ssol Posted June 22, 2013 Posted June 22, 2013 السلام عليكم شباب انا شفت سيرفر اجنبي يحركون الاوبجكت بواسطة الازرار يعني مثلا يضغط رقم 1 يتحرك الي الامام اذا ضغط 2 يرجع ورا يضغط 3 يرتفع 4 ينزل 5 يوقف فهمتوني كيف يسوونها !ممكن الاكواد المطلوبه
PaiN^ Posted June 22, 2013 Posted June 22, 2013 createObject bindKey moveObject " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
#DRAGON!FIRE Posted June 22, 2013 Posted June 22, 2013 createObject moveObject bindKey او تقصد مثلا زر في اللوحة .؟ To Contact Me at Skype : [email protected]
][sojn][ Posted June 22, 2013 Posted June 22, 2013 getElementPosition createObject bindKey moveObject مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
iMr.Dawix~# Posted June 22, 2013 Posted June 22, 2013 createObject bindKey moveObject + setTimer My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
#DRAGON!FIRE Posted June 22, 2013 Posted June 22, 2013 # ضــأوي اش فاايدة التايمر To Contact Me at Skype : [email protected]
PaiN^ Posted June 22, 2013 Posted June 22, 2013 @ ][sojn][ : getElementPosition ما يحتاج @ xXDawiXx : و ليش التايمر ؟ " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
3ssol Posted June 22, 2013 Author Posted June 22, 2013 عارف هذول بس لازم احط احداثيات ومثلا ابيه يروح الي الامام كيف ! راح يروح لـ احداثيات معينه واذا بلف يمين بيروح احداثيات معينه ماراح يروح لكل مكان فهمت ! يعني لازم نحتاج getElementPostion + ماني عارف كيف اسويها
iMr.Dawix~# Posted June 22, 2013 Posted June 22, 2013 @ ][sojn][ : getElementPosition ما يحتاج@ xXDawiXx : و ليش التايمر ؟ التايمر عشان تسويه مع الأوبجكت وهو يتحرك وتسوي له كيل تايمر عشان يوقفه اذا ضغط زر5 My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
#DRAGON!FIRE Posted June 22, 2013 Posted June 22, 2013 ششوف اخوي سسهلة # + الكود الي قلت عليه مو لازم مــثأل : moveObject ( ObjectName, 5000, 168.5, 424.20001220703, 13) # زي احداثياتك # تجيب احداثياتك وحطها هنا # بس انتبه # 13 يمين او يسار كذا انت شوفها وجرب لين ما تضبط معاك x لو غيرتها ممكن تختلف انت شوف ال To Contact Me at Skype : [email protected]
#DRAGON!FIRE Posted June 22, 2013 Posted June 22, 2013 @ ][sojn][ : getElementPosition ما يحتاج@ xXDawiXx : و ليش التايمر ؟ التايمر عشان تسويه مع الأوبجكت وهو يتحرك وتسوي له كيل تايمر عشان يوقفه اذا ضغط زر5 لا # فيه طريقة : يسوي موف اوبحكت وقت يضغط ارجاع للوبجكت ويجيب احداثيات الاوبجكت الي سواه هذي مو معقدة To Contact Me at Skype : [email protected]
][sojn][ Posted June 22, 2013 Posted June 22, 2013 @ ][sojn][ : getElementPosition ما يحتاج@ xXDawiXx : و ليش التايمر ؟ هو يبي الاوبجكت بمكان ويبي الاوبجكت يروح قدام وفوق لازم يستعمل getElementPosition اعتقد انت فاهم وش تسوي الوظيفه مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
3ssol Posted June 22, 2013 Author Posted June 22, 2013 ادري انكم موعارفين كيف لنا مبين من كلامكم ورونا مثال طيب
#DRAGON!FIRE Posted June 22, 2013 Posted June 22, 2013 @ ][sojn][ : getElementPosition ما يحتاج@ xXDawiXx : و ليش التايمر ؟ هو يبي الاوبجكت بمكان ويبي الاوبجكت يروح قدام وفوق لازم يستعمل getElementPosition اعتقد انت فاهم وش تسوي الوظيفه لأ سسسوجن # هو يسوي موف اوبجكت من نفسها موف اوبجكت ما يحتاج ذا الكود يسويها وايحط الاحداثيات عـأدي To Contact Me at Skype : [email protected]
PaiN^ Posted June 22, 2013 Posted June 22, 2013 getElementPosition لوول كلام سوجن صح راح يحتاج " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
S4MuEL Posted June 22, 2013 Posted June 22, 2013 آعتقد آن سوجن يقصد ذي getElementPosition عشآن يجيب إحدآثيآت آلأوبجكت ؟ ! آمآم ورآ ؟ !
3ssol Posted June 22, 2013 Author Posted June 22, 2013 المهم ماعلينا هل من مبدع يعرفلها ؟ ولا محد يعرف
S4MuEL Posted June 22, 2013 Posted June 22, 2013 مآ في عندنآ آلآ آلمبدعين -,- .. جب آحدآثيآت آلأوبجكت آمآم يمين مدري إيش , وخلهآ علينآ =\
PaiN^ Posted June 22, 2013 Posted June 22, 2013 getElementPosition createObject bindKey moveObject مافي جاهز ذذ " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
3ssol Posted June 22, 2013 Author Posted June 22, 2013 ماقلت جاهز بس كيف اسويه يمين ويسار درينا انكم اكبر مبدعين عطونا مثال ناقص طيب
S4MuEL Posted June 22, 2013 Posted June 22, 2013 لمآ يدعس آلمآركر يتحرك آلأوبجكت 3ssol = createMarker(....) 3ssol2 = createObject(980,......) addEventHandler("onMarkerHit", 3ssol, function(player) if getElementType(player)=="player" then moveObject(3ssol2,2000,x,y,z) end end ) xyz = سطر 6 , وين تبيهآ تتحرك يمين يسآر آللي تبغآه 2000 = آلوقت يلي يآخذه الاوبجكت عند التحرك
PaiN^ Posted June 22, 2013 Posted June 22, 2013 3ssol = createObject( ... ) function move( ) local x, y, z = getElementPosition( 3ssol ) moveObject( 3ssol, 1000, x + 2, y, z ) return true end addEventHandler( "onResourceStart", resourceRoot, function( ) for k,v in ipairs( getElementsByType( "player" ) ) do bindKey( v, "arrow_l", "down", move ) end end ) " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
][sojn][ Posted June 22, 2013 Posted June 22, 2013 لمآ يدعس آلمآركر يتحرك آلأوبجكت 3ssol = createMarker(....) 3ssol2 = createObject(980,......) addEventHandler("onMarkerHit", 3ssol, function(player) if getElementType(player)=="player" then moveObject(3ssol2,2000,x,y,z) end end ) xyz = سطر 6 , وين تبيهآ تتحرك يمين يسآر آللي تبغآه 2000 = آلوقت يلي يآخذه الاوبجكت عند التحرك ما يبي الاوبجكت يتحرك لمكان معين يبيه يتحرك لقدام ولا فوق مو لـمكان معين مطلوب سيرفر ابرمج فيه ضيفني سكايب Sojn_999
mr.ekoo Posted June 22, 2013 Posted June 22, 2013 الى فهمته تبغي كل مرة يضغط الزر يتحرك لقدام مو لاحدثيات معينة جرب هذا تطبيق لتحريك X ب 10 خطوات -- Server Side -- function fanFunction() ob = createObject ( 1337, 5540.6654, 1020.55122, 1240.545, 90, 0, 0 ) bindKey (source,"1","down", function(player,key,state) local X, Y, Z = getElementPosition ( ob ) local newX = X + 10 moveObject ( ob, 1000, newX, Y, Z ) end ) end addEventHandler ("onResourceStart",getRootElement(),fanFunction) غير مجرب
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