yazan Posted February 14, 2013 Posted February 14, 2013 سلام عليكم ودي كود سياره تشتغل و ططفي بغلبكم معي سبحان الله ---------------------------------- LUA 56%
PaiN^ Posted February 14, 2013 Posted February 14, 2013 setVehicleEngineState " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
yazan Posted February 14, 2013 Author Posted February 14, 2013 ذا كود لو خرج من سياره ودي و هوا بل سياره يعني لوحه اعطوني الوضيفه و انا عامل اللوحه و ازرار و اطرحها سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 14, 2013 Posted February 14, 2013 On = {} On.Button = guiCreateButton(558, 325, 243, 107, "", false) addEventHandler("onClientGUIClick",root, function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == On.Button ) then setVehicleEngineState ( vehicle, true ) end end end )
yazan Posted February 14, 2013 Author Posted February 14, 2013 يسير كذا ؟ GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor_Button[1] ) then On = {} On.Button = guiCreateButton(558, 325, 243, 107, "", false) addEventHandler("onClientGUIClick",root, function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == On.Button ) then setVehicleEngineState ( vehicle, true ) end end end ) end end سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 14, 2013 Posted February 14, 2013 يسير كذا ؟ GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) addEventHandler( "onClientGUIClick", root , function () if ( source == GUIEditor_Button[1] ) then On = {} On.Button = guiCreateButton(558, 325, 243, 107, "", false) addEventHandler("onClientGUIClick",root, function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == On.Button ) then setVehicleEngineState ( vehicle, true ) end end end ) end end GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(232,145,438,398,"لوحه تحكم بل سياره",false) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1]) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,21,420,368,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(3,2,416,364,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(268,311,66,48,"تشغيل سياره",false,GUIEditor_Tab[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) addEventHandler( "onClientGUIClick", root , function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then if ( source == GUIEditor_Button[1] ) then setVehicleEngineState ( vehicle, true ) end end end )
yazan Posted February 14, 2013 Author Posted February 14, 2013 وش الغلط "yazan" version="1.0.1" name="yazan" description="It draws meme faces" type="script" /> سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 14, 2013 Posted February 14, 2013 "yazan" version="1.0.1" name="yazan" description="It draws meme faces" type="script" /> الصور لازم تكون في ملف اسمة images
yazan Posted February 14, 2013 Author Posted February 14, 2013 داري بس في كود مو شغال ولا ميتا اصلن شغاله سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 14, 2013 Posted February 14, 2013 داري بس في كود مو شغال ولا ميتا اصلن شغاله شغال الميتا , وانسخ الكود عدلتة لك فوق ^ وجرب ذذ
yazan Posted February 15, 2013 Author Posted February 15, 2013 انت حاط صوره 2 [lua]guiCreateStaticImage(3,2,416,364,"images/yazan.png",false,GUIEditor_Tab[1])[lua] سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 15, 2013 Posted February 15, 2013 ماهو انا انا بس عدلت الوظيفة ليسس الا ذذ ولا الصور واللوحة انت .
yazan Posted February 15, 2013 Author Posted February 15, 2013 المشكله عندي في اغلط بل لوحه انه في صورتين تيجي شوي اعدلها و اطرح كود من جديد بغلبك معي سبحان الله ---------------------------------- LUA 56%
yazan Posted February 15, 2013 Author Posted February 15, 2013 اخوي خلك من طلب الاوله كلها طلبي بيغلب شوي انا عملت لوحة بس لو تضيف لها اومري 3 نقل في ففوق 3 اومر نقل و واحد تشغل سياره و اطفئها GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,24,754,539,"images/mtalogo.png",false,GUIEditor_Window[1]) سبحان الله ---------------------------------- LUA 56%
PaiN^ Posted February 15, 2013 Posted February 15, 2013 -- Cleint side ( Not tested !! ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(10,24,754,539,"images/mtalogo.png",false,GUIEditor_Window[1]) addEventHandler( "onClintGUIClick", root, function ( player ) if ( source == GUIEditor_Button[1] ) then setElementPosition ( source, X, Y, Z ) setElementInterior ( source, int ) setElementDimension ( source, Dim ) elseif ( source == GUIEditor_Button[2] ) then setElementPosition ( source, X, Y, Z ) setElementInterior ( source, int ) setElementDimension ( source, Dim ) elseif ( source == GUIEditor_Button[3] ) then setElementPosition ( source, X, Y, Z ) setElementInterior ( source, int ) setElementDimension ( source, Dim ) elseif ( source == GUIEditor_Button[4] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then local engine = getVehicleEngineState ( vehicle ) setVehicleEngineState ( vehicle, not engine ) end end end ) int = Interior من لوحة الآدمن Dim = Dimension من لوحة الآدمن X = الإحداثي Y = الإحداثي Z = الإحداثي *--> بدل بالإحداثيات و الأشاء الباقية, وإن شاء الله بيشتغل " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
yazan Posted February 15, 2013 Author Posted February 15, 2013 على فكرا في 4 ازرار و 3 نقل واحد اطفاء محرك و تشغيله سبحان الله ---------------------------------- LUA 56%
yazan Posted February 15, 2013 Author Posted February 15, 2013 مشكور بجرب و برد خبر بس بصححلك معلمه هذى ختصار لكود امر نقل elseif ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, -2074.8000488281, 1334.1999511719, 7.1999998092651 ) سبحان الله ---------------------------------- LUA 56%
yazan Posted February 15, 2013 Author Posted February 15, 2013 كودك غلط ما في امر فتح ؟؟ شلون وده تفتح النافذه سبحان الله ---------------------------------- LUA 56%
yazan Posted February 15, 2013 Author Posted February 15, 2013 بشكل عام كا نافذه + زراير شغاله لكن اومر للزراير ما فيه سبحان الله ---------------------------------- LUA 56%
TAPL Posted February 15, 2013 Posted February 15, 2013 (يرجى تجنب وضع المشاركات المزدوجة (أكثر من مشاركة ورا بعض https://forum.multitheftauto.com/viewtopic.php?f=119&t=49609
iPrestege Posted February 15, 2013 Posted February 15, 2013 خبصت الموضوع -_-" دخلت اكواد على اكواد وضيعت طريق الموضوع كذا الناس ماتحب تساعدك -_-" !
yazan Posted February 15, 2013 Author Posted February 15, 2013 هذي لوحه لكن في غلط في امر الازرار مع علم 3 ازرار نقل و 1 تشغل و اطفاء محرك المتور GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) bindKey("F2","down",open) addEventHandler( "onClintGUIClick", root, function ( player )if ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[2] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[3] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[4] ) then local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then local engine = getVehicleEngineState ( vehicle ) setVehicleEngineState ( vehicle, not engine ) end end end ) سبحان الله ---------------------------------- LUA 56%
yazan Posted February 15, 2013 Author Posted February 15, 2013 خبصت الموضوع -_-" دخلت اكواد على اكواد وضيعت طريق الموضوع كذا الناس ماتحب تساعدك -_-" ! انا كنت بدي موضع اغلق سياه و نقل قلت خلني ادمج مع بعض و كود اول شغال لكنه احط احدثيات ما ينقل و ما يطفي و يشغل محرك سبحان الله ---------------------------------- LUA 56%
iPrestege Posted February 15, 2013 Posted February 15, 2013 -- Client Side ..! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(26,35,773,574,"لوحة يـز ـن",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(99,155,197,55,"الورشة",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(349,156,191,51,"مقر عصابة دارك",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(572,156,161,51,"بيت يـز ـن",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(221,356,361,45,"لتشغيل سياره او اطفاء",false,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(304,128,0,0,false,GUIEditor_Window[1]) function open() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end bindKey("F2","down",open) isOn = true addEventHandler( "onClientGUIClick", root, function () if ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[2] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[3] ) then setElementPosition( localPlayer, x, y, z) elseif ( source == GUIEditor_Button[4] ) 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 )
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