#DRAGON!FIRE Posted August 20, 2014 Posted August 20, 2014 هو الفنشكن باقي جديد مخرف شوية .. جرب كذا .. : local Mover = 0 addEvent ( "setit", true ) --if the vehicle is a car addEventHandler ( "setit", root, function ( theVeh ) Mover = 0 theVeh = getPedOccupiedVehicle(localPlayer) outputChatBox("Working !") --tester x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component Timer = setTimer ( function ( ) if ( Mover >= y ) then if ( isTimer ( Timer ) ) then killTimer ( Timer ) end end Mover = Mover + 0.002 end, 1000, 0 ) setVehicleComponentPosition( theVeh, "coveral", x, Mover, z) end )
mustang Posted August 20, 2014 Author Posted August 20, 2014 بختصار أنا بيدي y تزيد 0.001 كل عشر أجزاء من الثانيه بس إذا ي وصلت 4.31 > من توقف الإضافه ل y
mustang Posted August 20, 2014 Author Posted August 20, 2014 هو الفنشكن باقي جديد مخرف شوية ..جرب كذا .. : local Mover = 0 addEvent ( "setit", true ) --if the vehicle is a car addEventHandler ( "setit", root, function ( theVeh ) Mover = 0 theVeh = getPedOccupiedVehicle(localPlayer) outputChatBox("Working !") --tester x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component Timer = setTimer ( function ( ) if ( Mover >= y ) then if ( isTimer ( Timer ) ) then killTimer ( Timer ) end end Mover = Mover + 0.002 end, 1000, 0 ) setVehicleComponentPosition( theVeh, "coveral", x, Mover, z) end ) ok
mustang Posted August 20, 2014 Author Posted August 20, 2014 هو الفنشكن باقي جديد مخرف شوية ..جرب كذا .. : local Mover = 0 addEvent ( "setit", true ) --if the vehicle is a car addEventHandler ( "setit", root, function ( theVeh ) Mover = 0 theVeh = getPedOccupiedVehicle(localPlayer) outputChatBox("Working !") --tester x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component Timer = setTimer ( function ( ) if ( Mover >= y ) then if ( isTimer ( Timer ) ) then killTimer ( Timer ) end end Mover = Mover + 0.002 end, 1000, 0 ) setVehicleComponentPosition( theVeh, "coveral", x, Mover, z) end ) ok نفس النتيجه
#DRAGON!FIRE Posted August 20, 2014 Posted August 20, 2014 local Mover = 0 addEvent ( "setit", true ) --if the vehicle is a car addEventHandler ( "setit", root, function ( theVeh ) Mover = 0 theVeh = getPedOccupiedVehicle(localPlayer) outputChatBox("Working !") --tester x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component Timer = setTimer ( function ( ) if ( Mover >= y ) then if ( isTimer ( Timer ) ) then killTimer ( Timer ) end end Mover = Mover + 0.001 end, 500, 0 ) setVehicleComponentPosition( theVeh, "coveral", x, y+Mover, z) end )
mustang Posted August 20, 2014 Author Posted August 20, 2014 إذا بيدك تجريب عندك إستبدال : x, y, z = getVehicleComponentPosition( theVeh, "coveral") setVehicleComponentPosition( theVeh, "coveral", x, Mover, z) ب x, y, z = getVehicleComponentPosition( theVeh, "door_lf_ok") setVehicleComponentPosition( theVeh, "door_lf_ok", x, Mover, z) أو أدخل إل infernus إل باب إلي على اليسار لازم يتحرك
mustang Posted August 20, 2014 Author Posted August 20, 2014 local Mover = 0 addEvent ( "setit", true ) --if the vehicle is a car addEventHandler ( "setit", root, function ( theVeh ) Mover = 0 theVeh = getPedOccupiedVehicle(localPlayer) outputChatBox("Working !") --tester x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component Timer = setTimer ( function ( ) if ( Mover >= y ) then if ( isTimer ( Timer ) ) then killTimer ( Timer ) end end Mover = Mover + 0.001 end, 500, 0 ) setVehicleComponentPosition( theVeh, "coveral", x, y+Mover, z) end ) ما بيتحرك شي للأسف
#DRAGON!FIRE Posted August 20, 2014 Posted August 20, 2014 اخوي الكود تمام ما فيه اي اشكالية .. المشكلة من عندكـ او من استخدام الفنشكن او من الفنكشن نفسه !
mustang Posted August 20, 2014 Author Posted August 20, 2014 (edited) اخوي الكود تمام ما فيه اي اشكالية .. المشكلة من عندكـ او من استخدام الفنشكن او من الفنكشن نفسه ! ضيفني على سكايب edit: تم حل المشكله Edited October 28, 2014 by Guest
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