taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 احطه اي سطر؟ Link to comment
#Mr.Rajo~,< Posted September 8, 2015 Share Posted September 8, 2015 سفاح طيب الحين ليش مايصير يحط اللون من نفس creatMarker ? ولا في اختلاف ؟ Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 احطه اي سطر؟ تحت الماركر ولا تنسى تغير اسم المتغير ذذ سفاح طيب الحين ليش مايصير يحط اللون من نفس creatMarker ?ولا في اختلاف ؟ مافي آختلاف ذذذ Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 سفاح عدل انت واشوف كيف صار لانه انا بخزن بالمكتبه عندي Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 مكتبة؟ -- # Client Side : local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( myMarker, 188, 0, 0, 255 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) elseif ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) elseif ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) elseif source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end ) addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 ههههه اخوي اقصد انا الاكواد ذي احطها بفلاش مشان للمستقبل فهمتني؟؟ والمهم بسوي مود لحالي وارد لك خبر خليك معنا ربع ساعه بس هههه Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 ههههه اخوي اقصد انا الاكواد ذي احطها بفلاش مشان للمستقبل فهمتني؟؟والمهم بسوي مود لحالي وارد لك خبر خليك معنا ربع ساعه بس هههه تحطها في فلاش؟ O_o . أعوذ بالله Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 سويت المود من جديد لكن الماركر ما يبين للعلم ذا الكلنت local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( marker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي فوق الماء") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") end end ) elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("هنا الكلام") end end ) elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("تم أعطاءك دم ") end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7]then guiSetVisible(GUIEditor.window[1], false) outputChatBox("تم أعطاءك درع") end end) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) وش السبب الماركر ما يبين Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( marker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي فوق الماء") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("هنا الكلام") elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("تم أعطاءك دم ") end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7]then guiSetVisible(GUIEditor.window[1], false) outputChatBox("تم أعطاءك درع") end end) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 اخوي طيب وش الغلط كان؟ لما اشغل المود على طول تظهر اللوحه شلون الغيها واخليها بزر لانه كود فتح بزر معين خربان معلش غلبتك Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( marker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي فوق الماء") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("هنا الكلام") elseif ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1] , false) outputChatBox("تم أعطاءك دم ") end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7]then guiSetVisible(GUIEditor.window[1], false) outputChatBox("تم أعطاءك درع") end end) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) أنت حذفت كود فتح انافذة بزر وخليتها لكـ تفتح يوم تلمس الماركر ذذ تبيني أرجعها بزر؟ Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 مدري ليه كذا مشاكل البرمجه ما تخلص حاجه تقهر @_@ Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 ذا الماركر جاب لي المرض Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 بطرح لك كل مشاكله وانت صلحها المشكله الاولى لما اختار اعطاء دم او درع يوخذهم وتقفل اللوحه تلقائي اما الباقي يوخذهم وما تقفل اللوحه تلقائي وش المشكله هنا؟؟ ثانيا لما ادخل الماركر واخلص شراء اسوي اغلاق يبقى الماوس فاتح وما يسكر عشان اقدر اتحرك ويا ريت تقول لي وش تعدل مشان اعرف Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 (edited) local marker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( marker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي فوق الماء") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) _Close ( ) elseif ( source == GUIEditor.button[6] ) then _Close ( ) triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[3] then _Close ( ) outputChatBox("هنا الكلام") elseif ( source == GUIEditor.button[5]) then _Close ( ) triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then _Close ( ) triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[2] then _Close ( ) outputChatBox("تم أعطاءك دم ") end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7]then _Close ( ) outputChatBox("تم أعطاءك درع") end end) function _Close( ) guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) end addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) Edited September 8, 2015 by Guest Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 اخوي وش استفيد ابي بس تقولي وش الاخطاء كانت ومن كم سطر الى اي سطر معلش غلبتك لين اخلص امه لانه بتعلم عليه اشتغلوا بس وش ضفت مشان انا استفيد لانه اتعلم انا Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 اخوي وش استفيد ابي بس تقولي وش الاخطاء كانت ومن كم سطر الى اي سطر معلش غلبتك لين اخلص امه لانه بتعلم عليه لإخفاء المآوس showCursor الأخطاء هي أنكـ ما أستخدمت الوظيفة وعشآن كودكـ شوي طويل و الأزرار كثيرة سويت وظيفة تساعدة في أغلاقة النافذة وحطيت لها اسم عشان لو أبي أستخدمها هاذي هي الوظيفة function _Close( ) guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) end Link to comment
0m4r Posted September 8, 2015 Share Posted September 8, 2015 local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( myMarker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") elseif ( source == GUIEditor.button[2]) then triggerServerEvent ( "setarmor", localPlayer) outputChatBox ( "تم اعطائك درع" ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "setahealth",localPlayer) outputChatBox ( "تم اعطائك دم 200" ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") elseif ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي على الماء") elseif ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") elseif ( source == GUIEditor.button[7] ) then guiSetVisible ( GUIEditor.window[1], false) showCursor ( false ) end end ) Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( myMarker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") elseif ( source == GUIEditor.button[2]) then triggerServerEvent ( "setarmor", localPlayer) outputChatBox ( "تم اعطائك درع" ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "setahealth",localPlayer) outputChatBox ( "تم اعطائك دم 200" ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") elseif ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي على الماء") elseif ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") elseif ( source == GUIEditor.button[7] ) then guiSetVisible ( GUIEditor.window[1], false) showCursor ( false ) end end ) WTF? Link to comment
0m4r Posted September 8, 2015 Share Posted September 8, 2015 local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( marker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي فوق الماء") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") _Close ( ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) _Close ( ) elseif ( source == GUIEditor.button[6] ) then _Close ( ) triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[3] then _Close ( ) outputChatBox("هنا الكلام") elseif ( source == GUIEditor.button[5]) then _Close ( ) triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then _Close ( ) triggerServerEvent ( "setahealth",localPlayer) elseif source == GUIEditor.button[2] then _Close ( ) outputChatBox("تم أعطاءك دم ") end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7]then _Close ( ) outputChatBox("تم أعطاءك درع") end end) function _Close( ) guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) end addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) موب معرف الماركر بالسطر 2 + رتبت له الكود Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 الحين الوظيفه الي ضفتها وش وظيفتها بالضبط تخفي المؤشر وتخفي اللوحه بعد الاستخدام؟ Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 تخفي اللوحة والمؤشر بعد ما تضغط أي زر أعطاء دم , درع الى آخره ذذ Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 ههههه شلون شايف بدايتي بالبرمجه خايسة امس لسه بديت هههه Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 ههههه شلون شايف بدايتي بالبرمجه خايسة امس لسه بديت هههه لآ عآدي في نآس بدايتهم أسوأ منكـ أمثالي Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 ذذ المهم عندي سؤال اانا الاكواد ما ارتبها عادي صح؟؟ ومثلن ابي اللوحه تفتح بزر لها كود؟؟ 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