EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 (edited) ؟؟؟؟؟؟؟ code? GUIEditor_TabPanel = {} GUIEditor_Tab = {} wnd = guiCreateWindow(0.3939,0.0872,0.2321,0.4818,"مود قفل و فتح الموتر",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,19,299,342,false,wnd) GUIEditor_Tab[1] = guiCreateTab("Tab3",GUIEditor_TabPanel[1]) button = guiCreateButton(16,291,131,37,"قفل",false,GUIEditor_Tab[1]) button1 = guiCreateButton(163,291,127,35, "فتح",false,GUIEditor_Tab[1]) Image = guiCreateStaticImage(51,34,229,234,"images/mtalogo.png",false,GUIEditor_Tab[1]) addEventHandler("onClientGUIClick", root, function() if (source == قفل) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), true) elseif (source == فتح) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), false) end end) bindKey("F2", "down", function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled(guiGetVisible(wnd)) end) هذا الكود Edited August 14, 2012 by Guest Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 (edited) ؟؟؟؟؟؟؟ code? GUIEditor_TabPanel = {} GUIEditor_Tab = {} wnd = guiCreateWindow(0.3939,0.0872,0.2321,0.4818,"مود قفل و فتح الموتر",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,19,299,342,false,wnd) GUIEditor_Tab[1] = guiCreateTab("Tab3",GUIEditor_TabPanel[1]) button = guiCreateButton(16,291,131,37,"قفل",false,GUIEditor_Tab[1]) button1 = guiCreateButton(163,291,127,35, "فتح",false,GUIEditor_Tab[1]) Image = guiCreateStaticImage(51,34,229,234,"images/mtalogo.png",false,GUIEditor_Tab[1]) addEventHandler("onClientGUIClick", root, function() if (source == قفل) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), true) elseif (source == فتح) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), false) end end) bindKey("F2", "down", function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled(guiGetVisible(wnd)) end) هذا الكود GUIEditor_TabPanel = {} GUIEditor_Tab = {} wnd = guiCreateWindow(0.3939,0.0872,0.2321,0.4818,"مود قفل و فتح الموتر",true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,19,299,342,false,wnd) GUIEditor_Tab[1] = guiCreateTab("Tab3",GUIEditor_TabPanel[1]) button = guiCreateButton(16,291,131,37,"قفل",false,GUIEditor_Tab[1]) button1 = guiCreateButton(163,291,127,35, "فتح",false,GUIEditor_Tab[1]) Image = guiCreateStaticImage(51,34,229,234,"images/mtalogo.png",false,GUIEditor_Tab[1]) addEventHandler("onClientGUIClick", root, function() if (source == button) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), true) elseif (source == button1) then setVehicleLocked(getPedOccupiedVehicle(localPlayer), false) end end) bindKey("F2", "down", function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled(guiGetVisible(wnd)) end) Edited August 14, 2012 by Guest Link to comment
3NAD Posted August 14, 2012 Share Posted August 14, 2012 @ ===7MoDy=== Full Editor اضضغط lua و بعدها زر و ححطط الأكواد داخله Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 /quote] code? كيف اكتشف الاخطاء ؟؟؟؟ الي صار في المود Link to comment
3NAD Posted August 14, 2012 Share Posted August 14, 2012 هذي اللي بـ الصصورة هي الأخطاء Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 هذا addVehicleUpgrade(getPedOccupiedVehicle(هنا احط اسم النافذ؟),1010) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 هذا addVehicleUpgrade(getPedOccupiedVehicle(هنا احط اسم النافذ؟),1010) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 هذا addVehicleUpgrade(getPedOccupiedVehicle(هنا احط اسم النافذ؟),1010) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟؟ هل من رد او تعبتو ؟؟؟؟؟؟ Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 1010 يعني نيترو x10 Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 (edited) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 1010 يعني نيترو x10 مثل انا اخذت كود وين اكتب اسم النافذ في الكود ؟؟؟؟ في بعض الاكواد تختلف ؟ Edited August 14, 2012 by Guest Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 وش تقصد بال " نافذ " ؟ طيب الزر الي في المود Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 هذا addVehicleUpgrade(getPedOccupiedVehicle(هنا احط اسم النافذ؟),1010) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟؟ هل من رد او تعبتو ؟؟؟؟؟؟ وين احط اسم الزر ؟ Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 زر ايش حبيبي الكود هذا ما له علاقة بأزرار تماماً Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 طيب انا ابي اعرف مثل كود ايقاف عمل المحرك وين احط اسم الزر الي في المود ؟؟؟؟ Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 الزر شي والمود شي آخر الزر هذا عبارة عن شي اذا انضغت عليه يحصل شي انت تبيه والمود هذا شي من انشاءك اعرض كودك كلله Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 الزر شي والمود شي آخرالزر هذا عبارة عن شي اذا انضغت عليه يحصل شي انت تبيه والمود هذا شي من انشاءك اعرض كودك كلله GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(0.9004,0.4076,0.0988,0.1263,"لاستخدام",true) GUIEditor_Button[1] = guiCreateButton(11,35,115,43,"وزنية النخيل",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.9004,0.2826,0.0988,0.1263,"لاستخدام",true) GUIEditor_Button[2] = guiCreateButton(10,39,116,41,"وزنية مسرع بشويش",false,GUIEditor_Window[2]) GUIEditor_Window[3] = guiCreateWindow(0.9004,0.5326,0.0988,0.125,"لاستخدام",true) GUIEditor_Button[3] = guiCreateButton(13,36,110,39,"وزنية بوصقر",false,GUIEditor_Window[3]) Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 يعني انت الحين تبيه اذا ضغت GUIEditor_Button[1] او GUIEditor_Button[2] او GUIEditor_Button[3] يعطيه نايترو ؟ Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 يعني انت الحين تبيه اذا ضغتGUIEditor_Button[1] او GUIEditor_Button[2] او GUIEditor_Button[3] يعطيه نايترو ؟ يب ابي اعرف اي كلمه استبدله ؟؟ لكودات Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 يعني انت الحين تبيه اذا ضغتGUIEditor_Button[1] او GUIEditor_Button[2] او GUIEditor_Button[3] يعطيه نايترو ؟ يب ابي اعرف اي كلمه استبدله ؟؟ لكودات حط ذا الكود في سطر آخر بعد كودك addEventHandler("onClientGUIClick", root, function( ) if ( source == GUIEditor_Button[1] ) then addVehicleUpgrade(getPedOccupiedVehicle(source),1010) elseif ( source == GUIEditor_Button[2] ) then addVehicleUpgrade(getPedOccupiedVehicle(source),1010) elseif ( source == GUIEditor_Button[3] ) then addVehicleUpgrade(getPedOccupiedVehicle(source),1010) end end) Link to comment
EdeN Posted August 14, 2012 Author Share Posted August 14, 2012 يعني لو ابي ادمج في الكود شي بهذا واسم الاستبدال source == GUIEditor_Button[1] ؟ Link to comment
Tete omar Posted August 14, 2012 Share Posted August 14, 2012 if source == GUIEditor_Button[1] then يعني اذا الاعب ضغت على اسم الزر الي هو GUIEditor_Button[1] سوي هالوظيفة addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 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