xMr.SAAD Posted January 29, 2014 Share Posted January 29, 2014 السلام عليكم ~ شبآب بقيت كود اذا يوم تشغل مود تكون فيه سيارات اماكن انا حطها~ يوم يركبها لاعب ما يقدر يمشي فيها في لوحة مثلا انا مسويه يوم اضغظ زر تشغيل تمشي سيارات يوم اضغظ ايقاف تتوقف ~ Link to comment
Do_De<3 Posted January 29, 2014 Share Posted January 29, 2014 استخدم وظيفة setVehicleFrozen Link to comment
xMr.SAAD Posted January 29, 2014 Author Share Posted January 29, 2014 ممكن تجي سكايبي <3 Link to comment
Do_De<3 Posted January 29, 2014 Share Posted January 29, 2014 ممكن تجي سكايبي <3 آوكيهه حوبي: ) Link to comment
Do_De<3 Posted January 29, 2014 Share Posted January 29, 2014 addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب Link to comment
iPrestege Posted January 29, 2014 Share Posted January 29, 2014 addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب Save my right's? مثال على زر / isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == Button ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) https://forum.multitheftauto.com/viewtopic.php?f=160&t=54726&p=529686&hilit=isOn#p529683 Link to comment
K1NG Posted January 29, 2014 Share Posted January 29, 2014 (edited) addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب Save my right's? مثال على زر / isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == Button ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) https://forum.multitheftauto.com/viewtopic.php?f=160&t=54726&p=529686&hilit=isOn#p529683 : يمديكم تختصرون بشكل أكبر + ناقصكم تحقق من أن إلي كبس الزر هو سائق السيارة، ع العموم يصير الكود كذا addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) and ( getVehicleController ( vehicle ) == localPlayer ) then setVehicleEngineState ( vehicle, not getVehicleEngineState ( vehicle ) ) end end, false ) Edited January 29, 2014 by Guest Link to comment
iPrestege Posted January 29, 2014 Share Posted January 29, 2014 addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle ( localPlayer ) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب Save my right's? مثال على زر / isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == Button ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) https://forum.multitheftauto.com/viewtopic.php?f=160&t=54726&p=529686&hilit=isOn#p529683 : يمديكم تختصرون بشكل أكبر، بحيث يصير الكود كذا addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then setVehicleEngineState ( vehicle, not getVehicleEngineState ( vehicle ) ) end end, false ) عارف هالكلام و الاختصار بس الكود قديم ولكن حبيت اعرف لية مآحط رابط البوست وخلصنا؟ Link to comment
K1NG Posted January 29, 2014 Share Posted January 29, 2014 عارف هالكلام و الاختصار بس الكود قديم ولكن حبيت اعرف لية مآحط رابط البوست وخلصنا؟ . مدري عنه + نسيت شي .. ناقص عندكم تحقق من أن سائق السيارة هو الي كبس الزر Link to comment
Do_De<3 Posted January 29, 2014 Share Posted January 29, 2014 addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) جرب Save my right's? مثال على زر / isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == Button ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if isOn then isOn = false setVehicleEngineState ( vehicle, false ) else isOn = true setVehicleEngineState ( vehicle, true ) end end end end ) https://forum.multitheftauto.com/viewtopic.php?f=160&t=54726&p=529686&hilit=isOn#p529683 ترى ماقلت انا مسويه : ) Link to comment
فاّرس Posted January 29, 2014 Share Posted January 29, 2014 كذا كأنك تقول انا الي مسويه , يعني قول الكود موب لي من اول, او اطرح رابط الموضوع -__-" Link to comment
Do_De<3 Posted January 29, 2014 Share Posted January 29, 2014 كذا كأنك تقول انا الي مسويه , يعني قول الكود موب لي من اول, او اطرح رابط الموضوع -__-" يآرآقل عوآفي : ) 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