-
Posts
1,453 -
Joined
-
Last visited
-
Days Won
2
Everything posted by taha201100
-
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 ) bindKey("f1",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible (GUIEditor.window[1])) end )
-
انا عندي ذا الكود bindKey("الزر",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible (GUIEditor.window[1])) end ) لكن ما يشتغل احط النافذة والزر مدري ما يضبط
-
باك يا حلوين هناك ناس كثير ما قصروا معي وساعدوني بفهم طريقه ربط كود بالزر وفهمته وتعلمت شلون اربط المود يفتح مع الماركر الحين ابي اعرف شلون احط صورة فوق الماركر ورسم البعد والارتفاع ويا ريت توضيح يا مزز
-
ذذ المهم عندي سؤال اانا الاكواد ما ارتبها عادي صح؟؟ ومثلن ابي اللوحه تفتح بزر لها كود؟؟
-
ههههه شلون شايف بدايتي بالبرمجه خايسة امس لسه بديت هههه
-
الحين الوظيفه الي ضفتها وش وظيفتها بالضبط تخفي المؤشر وتخفي اللوحه بعد الاستخدام؟
-
اخوي وش استفيد ابي بس تقولي وش الاخطاء كانت ومن كم سطر الى اي سطر معلش غلبتك لين اخلص امه لانه بتعلم عليه اشتغلوا بس وش ضفت مشان انا استفيد لانه اتعلم انا
-
بطرح لك كل مشاكله وانت صلحها المشكله الاولى لما اختار اعطاء دم او درع يوخذهم وتقفل اللوحه تلقائي اما الباقي يوخذهم وما تقفل اللوحه تلقائي وش المشكله هنا؟؟ ثانيا لما ادخل الماركر واخلص شراء اسوي اغلاق يبقى الماوس فاتح وما يسكر عشان اقدر اتحرك ويا ريت تقول لي وش تعدل مشان اعرف
-
مدري ليه كذا مشاكل البرمجه ما تخلص حاجه تقهر @_@
-
اخوي طيب وش الغلط كان؟ لما اشغل المود على طول تظهر اللوحه شلون الغيها واخليها بزر لانه كود فتح بزر معين خربان معلش غلبتك
-
سويت المود من جديد لكن الماركر ما يبين للعلم ذا الكلنت 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 ) وش السبب الماركر ما يبين
-
ههههه اخوي اقصد انا الاكواد ذي احطها بفلاش مشان للمستقبل فهمتني؟؟ والمهم بسوي مود لحالي وارد لك خبر خليك معنا ربع ساعه بس هههه
-
سفاح عدل انت واشوف كيف صار لانه انا بخزن بالمكتبه عندي
-
طيب مثال لكود تغيير لون الماركر
-
bindKey("f2",'down', function ( ) ذا السطر الي حذفته 21 بس الماركر بطل يظهر وبطل يشتغل من اف 2 لكن يشتغل المود
-
طيب كيف مثلن ابي احط لون ماركر مثلن معين شلون او شكل الماركر ولما حذفت زر الي يفتح بأف 2 بطلت الماركر يظهر ممكن تقولي اي سطر احذف؟
-
تم اشتغل لكن في مشاكل معلش اطرحها اغلبك المود يفتح بالماركر لكن يفتح بأف 2 ايضا الحين ما ابيه يفتح بأف 2 اشيل زر الفتح؟؟
-
طيب وين احصل الماركر قرب وش؟
-
الكود اي سطر؟؟ وين مكان الماركر؟
-
لا ما فهمت احسك تعقد الامور البرامترات ومدري شنو شوف الاكواد الي طرحتها كلنت وسيرفر ممكن تعدل عليها وتحط لما يدخل الماركر يشغل اللمود حق الكلنت والسيرفر كتجربه وانا اشوف المقارنه
-
cleint 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 ) bindKey("f2",'down', function ( ) getV = guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if getV == true then playSound("intro.mp3" ) end end ) 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) server addEvent("setahealth",true) addEventHandler("setahealth",root, function() setPedStat ( source, 24, 1000 ) setElementHealth ( source, 200 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) مثلن ابي المود ذا لما يلمس الماركر الاعب يفتح ذا المود ممكن مثال هوه مود بسيط
-
عفريت لو شايف الموضوع ملعش سكايبك او تشرح لي انت هنا شرحك ايسر واسهل +شكرا روكيت
-
اخوي انت مب فاهم قصدي انا اعرف انه هنا الاحداثيات بس مثلن سطر 3 وش اعدل فيه وسطر 5 و6 و7 وهكذا
