-
Posts
2,013 -
Joined
-
Last visited
Everything posted by iMr.SFA7
-
جربتها شغالة عندي ذذذ مافي فرق ذذ
-
الككود صحيح مافيه شيء المشكلة من عندكـ حاول تححط له الزر واسم النافذة أشوفهم؟
-
تفتح بزر؟ bindKey guiSetVisible showCursor مافي كود أسمه فتح النافذة بزر هـ الأكواد أنت تبرمجها مافي شيء عطني كود فتح لوحة بزر في وظائف تساعدك بالشيء الي تبيه مثل الي حطيته لكـ فوق ^
-
لآ عآدي في نآس بدايتهم أسوأ منكـ أمثالي
-
تخفي اللوحة والمؤشر بعد ما تضغط أي زر أعطاء دم , درع الى آخره ذذ
-
لإخفاء المآوس showCursor الأخطاء هي أنكـ ما أستخدمت الوظيفة وعشآن كودكـ شوي طويل و الأزرار كثيرة سويت وظيفة تساعدة في أغلاقة النافذة وحطيت لها اسم عشان لو أبي أستخدمها هاذي هي الوظيفة function _Close( ) guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) end
-
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 )
-
هاذي وظائف تبرمجها بنفسك؟ اذا جديد عليها آبدأ بالأساسيات قبل كل شيء ذذ
-
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 ) أنت حذفت كود فتح انافذة بزر وخليتها لكـ تفتح يوم تلمس الماركر ذذ تبيني أرجعها بزر؟
-
bindKey isObjectInACLGroup aclGetGroup getAccountName getPlayerAccount triggerClientEvent addEventHandler "onClientRender"
-
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 )
-
تحطها في فلاش؟ O_o . أعوذ بالله
-
مكتبة؟ -- # 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)
-
تحت الماركر ولا تنسى تغير اسم المتغير ذذ مافي آختلاف ذذذ
-
setMarkerColor ( marker, 188, 0, 0, 255 )
-
setMarkerColor لون الماركر أستخدم الوظيفة سطر 3 في أنشاء الماركر للشكل الي تبيه وهذي قائمة الأشكال cylinder شكل الماركر غير كلمة --[[ "checkpoint" "ring" "arrow" "cylinder" "corona" edit ; لازم تحذف الوظيفة كاملة -- # Client Side : local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) 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)
-
أنت بدل الأحداثيات سطر 3 أول ثلاث أرقمونتات -_-"
-
3 أنشاء الماركر سطر وظيفة فتح النافذة عند لمس الماركر من سطر 32 الى 39
-
-- # Client Side : local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) 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 ("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)
-
local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) myMarker في أول سطر قمنا بأنشاء الماركر ووضع متغير له والمتغير هو كلمة طبعاً تقدر تحط الماركر بدون متغير بس ماراحتقدر تتحكم أو تسوي شيء فيه من وين تجيبه اذا ماله متغير؟ function MarkerHit( hitElement, matchingDimension ) هنا قمنا بأنشاء وظيفة جديدة ووضععننا لها أسم طبعاً ما تقدر تسوي وظائف نع حدث بدون بداية للوظيفة ذذ وقمنا بتعريف الألمنت الي دخل الماركر onMarkerHit طبعاً لو تلاحظ الحدث وتدخل عليه من الويكي https://wiki.multitheftauto.com/wiki/OnMarkerHit راح تلاحظ البرامترات حقت الحدث طبعاً لكل حدث برامترات خاصة فيه ذذ برامترات الحدث ذا element hitElement, bool matchingDimension hitElement == الشيء الي دخل الماركر يمكن يكون أوبجكت يمكن يكون سيارة يمكن يكون لاعب ذذ matchingDimension == هذا يتعلق بالعالم الوهمي وهو الألمنت الي دخل الماركر في أي عالم وهمي؟ local elementType = getElementType( hitElement ) بعدها سوينا لوكال وتعريف وجبنا نوع الألمنت الي دخل الماركر outputChatBox( elementType.." inside myMarker", getRootElement(), 255, 255, 0 ) بعدها سوينا مخرج شات وحطينا فيه نوع الألمنت يمكن يجيب لك سيارة أو لاعب أو أوبجكت الى آخره ويحط مخرج الشات للكل أتمنى تكون فهمت على الشرح أي أستفسار انا حاضر ذذ
-
addCommandHandler ("Join", function ( thePlayer ) setElementDimension (thePlayer,55) if (getPlayerTeam (thePlayer) == getTeamFromName ("Grove")) then setElementPosition ( thePlayer,x , y , z ) elseif (getPlayerTeam (thePlayer) == getTeamFromName ("Police")) then setElementPosition ( thePlayer,x , y , z ) end end )
