mo7taref2014 Posted May 3, 2015 Posted May 3, 2015 انا سويت سياره مثال vehicle_ = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) كيف اخلي لها سرعه معينه ؟
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 يعني مثال هي سرعتها القصوى 150 انا بدي اخلي سرعتها القصوى 50
yazan Posted May 3, 2015 Posted May 3, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end)
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 اخي انا بدي اياها اتكو سرعتها القصوى 50 لسياره معينه
yazan Posted May 3, 2015 Posted May 3, 2015 طيب ستخدم هذه setVehicleHandling ( vehicle,'maxVelocity',50 )
Mr.R Posted May 4, 2015 Posted May 4, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) يايزن طيب شلون اخلي اذا ضغطت رقم 9 وانا مثلا ماشي على سرعة 120 تثبت 120 واذا فكيت رقم 9 وانا باقي ماشي تكمل السرعه ؟
yazan Posted May 4, 2015 Posted May 4, 2015 اذا قصدك مثبت سرعه في مود جاهز اما اذا قصدك مثل ما انا فهمت عليك كذا function on(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',2000 ) setVehicleHandling ( vehicle,'engineAcceleration',200 ) end end end function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',120 ) setVehicleHandling ( vehicle,'engineAcceleration',35 ) end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", on) bindKey (v, "9", "up", off) end end)
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) يايزن طيب شلون اخلي اذا ضغطت رقم 9 وانا مثلا ماشي على سرعة 120 تثبت 120 واذا فكيت رقم 9 وانا باقي ماشي تكمل السرعه ؟ keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released
Mr.R Posted May 4, 2015 Posted May 4, 2015 لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) السبب من فنكشن setVehicleHandling ماعرفت له
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) السبب من فنكشن setVehicleHandling ماعرفت له هذا setVehicleHandling ماله شغل بالسرعة بس يعدل لك الوزنية حقت السيارة
Mr.R Posted May 4, 2015 Posted May 4, 2015 keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released هههههههههه ارسلت ردي بعدين شفت ردك معليش مشكور + ممكن توضح اكثر
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 انا اقصد تكون سرعة السياره القصوى 50 ما تقدر تغيرها
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 انا اقصد تكون سرعة السياره القصوى 50 ما تقدر تغيرها يقدر يعدلها من حرف b اذ كان موجود مود hedit keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released هههههههههه ارسلت ردي بعدين شفت ردك معليش مشكور + ممكن توضح اكثر يقول لك both : تعمل الوظيفة اذ ضغط الزر او فلته يعني كنت تضغط زر تاب يضهر لك scoreboard واذ كنت ضاغط وفلت يشيله وهكذا
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 اخي انت مو فاهم قضدي بوضحلك انا سويت سياره local vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) انا بدي السياره هذي تكون سرعتها القصوى 50 بدون اي زر
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 خلاص تسلموا سويتها طلعت local vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) setVehicleHandling ( vehicle,'maxVelocity',50 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',7 )----- تسارع
yazan Posted May 4, 2015 Posted May 4, 2015 من قبل سنه اقلك لك ستخدم setVehicleHandling ( vehicle,'maxVelocity',50 ) مع الايفنت
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 من قبل سنه اقلك لك ستخدم setVehicleHandling ( vehicle,'maxVelocity',50 ) مع الايفنت اسمحلي ما فهمتك و شكرا على المساعده
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