iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 ذذالمهم عندي سؤال اانا الاكواد ما ارتبها عادي صح؟؟ ومثلن ابي اللوحه تفتح بزر لها كود؟؟ تفتح بزر؟ bindKey guiSetVisible showCursor مافي كود أسمه فتح النافذة بزر هـ الأكواد أنت تبرمجها مافي شيء عطني كود فتح لوحة بزر في وظائف تساعدك بالشيء الي تبيه مثل الي حطيته لكـ فوق ^ Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 انا عندي ذا الكود bindKey("الزر",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible (GUIEditor.window[1])) end ) لكن ما يشتغل احط النافذة والزر مدري ما يضبط 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 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 ) Link to comment
taha201100 Posted September 8, 2015 Author Share Posted September 8, 2015 بس هات شغله واكبس اف 2 ما تفتح اللوحة Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 جربتها شغالة عندي ذذذ انت حاط f1 مافي فرق ذذ Link to comment
0m4r Posted September 8, 2015 Share Posted September 8, 2015 جربتها شغالة عندي ذذذانت حاط f1 مافي فرق ذذ يمكن جالس يضغط ف اف 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
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