~>i'Mr.ZaId<~ Posted July 3, 2013 Share Posted July 3, 2013 السلام عليكم ورحمةة اللهه وبركاتهه ياشباب انا جالس اسوي مود وهو اول مود لي وطبعا هو سخيف بالسنبةة لكم بس في خطا بكود ياليت تصلحوه لي طبعا هو من كلينت GUIEditor_Button = {} GUIEditor_Label = {} wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) function fixcar1 (thePlayer) if isPedInVehicle(thePlayer) then fixVehicle(thePlayer) outputChatBox("تم تصليح سيارتك بنجاح",thePlayer,0,255,3) else outputChatBox("يجــب انت تكون داخل سيارة",thePlayer,0,255,3) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],fixcar1) وياليت تصلحووه لي Link to comment
MSHOOSH Posted July 3, 2013 Share Posted July 3, 2013 السلام عليكم ورحمةة اللهه وبركاتهه ياشباب انا جالس اسوي مود وهو اول مود لي وطبعا هو سخيف بالسنبةة لكم بس في خطا بكود ياليت تصلحوه لي طبعا هو من كلينت GUIEditor_Button = {} GUIEditor_Label = {} wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) function fixcar1 (thePlayer) if isPedInVehicle(thePlayer) then fixVehicle(thePlayer) outputChatBox("تم تصليح سيارتك بنجاح",thePlayer,0,255,3) else outputChatBox("يجــب انت تكون داخل سيارة",thePlayer,0,255,3) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],fixcar1) وياليت تصلحووه لي ي اخوي الخطا من البارتمر لان البارتمر الاول يكون الزر https://forum.multitheftauto.com/viewtopic.php?f=164&t=59629 اقرا الدرس هذا و بتفهم و بتصحح لنفسك Link to comment
~>i'Mr.ZaId<~ Posted July 3, 2013 Author Share Posted July 3, 2013 قريت الدرس بس ما فهمت كثير وما عرفت وش هو البارتمر وياليت تقلي وش هو البارتمر في هاذا الكود وياليت تصلحهه لي لاهنت وبفهمك الكود يعني لو اللاعب ضغط على زر تصليح السيارة تتصلح سيارتهه اذا كان فيها ويقول له تم تصليح سيارتك بنجاح اما اذا ما كان بسيارة يقول له يجب انت تكون داخل سيارة وياليت تصلحهه Link to comment
MSHOOSH Posted July 3, 2013 Share Posted July 3, 2013 server side !!! addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) client side !!! wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) Link to comment
~>i'Mr.ZaId<~ Posted July 3, 2013 Author Share Posted July 3, 2013 تفضل اخوي <meta> <script src="mode.lua" type="client" /> <script src="s_mode.lua" type="server" /> </meta> الكلنت هو mode.lua والسيرفر هو s_mode.lua Link to comment
iMr.Dawix~# Posted July 3, 2013 Share Posted July 3, 2013 server side !!! addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) client side !!! wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) ماكان فيه خطا النافذه تفتح وتقفل بس الألفا كانت 0 وماتبين -- client side wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,80)---- guiSetVisible(wnd,false) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("f5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) --server side addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) Link to comment
~>i'Mr.ZaId<~ Posted July 3, 2013 Author Share Posted July 3, 2013 server side !!! addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) client side !!! wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) ماكان فيه خطا النافذه تفتح وتقفل بس الألفا كانت 0 وماتبين -- client side wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,80)---- guiSetVisible(wnd,false) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("f5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) --server side addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) ياخوي نفس المشكلةة لما اضغط على الزر ما يصير شي Link to comment
iMr.Dawix~# Posted July 3, 2013 Share Posted July 3, 2013 ياخوي نفس المشكلةة لما اضغط على الزر ما يصير شي آسف نسيت الجدول جرب ذا -- client side wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,80)---- guiSetVisible(wnd,false) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("f5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) Link to comment
~>i'Mr.ZaId<~ Posted July 3, 2013 Author Share Posted July 3, 2013 والله ما نفع لما اضغط على الزر ما يصير شي Link to comment
jafar Posted July 3, 2013 Share Posted July 3, 2013 (edited) ماكان فيه خطا النافذه تفتح وتقفل بس الألفا كانت 0 وماتبين -- client side wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,80)---- guiSetVisible(wnd,false) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end bindKey("f5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor.button[1], function () triggerServerEvent("Repair",localPlayer) end,false) --server side addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) [/b] اسم الزر موب GUIEditor.button[1] إسم الزر GUIEditor_Button[1] -- Client Side ! GUIEditor_Button = {} GUIEditor_Label = {} wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() guiSetVisible ( wnd,not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end bindKey("F5", "down", OpenWin) addEventHandler("onClientGUIClick",GUIEditor_Button[1], function () triggerServerEvent("Repair",localPlayer) end,false) -- Server Side ! addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("تم تصليح سيارتك بنجاح", source, 255, 255, 0, true) else outputChatBox("يجــب انت تكون داخل سيارة", source, 255, 0, 0, true) end end ) Edited July 3, 2013 by Guest Link to comment
~>i'Mr.ZaId<~ Posted July 3, 2013 Author Share Posted July 3, 2013 مشكوور مشكووور اخوي جعفر وربي انك شنب شكرا Link to comment
jafar Posted July 3, 2013 Share Posted July 3, 2013 مشكوور مشكووور اخوي جعفر وربي انك شنب شكرا عفواً 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