iA7bk# Posted December 2, 2013 Share Posted December 2, 2013 (edited) السلام عليكم ورحمةة الله وبركاته شباب ابيكم تشوفون وش الخطأ بالكود او بالنافذه عندي انا سويت نافذه وابيها تظهر النافذه عند لمس الماركر وحاولة اسويها بس مدري ليه ما تضبط الكود : GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetAlpha(GUIEditor_Window[1],1) SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) guiSetFont(SS1,"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker , function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker , function ( ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" , root , function () guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end ) function closeg() if source == SS3 then guiSetVisible(GUIEditor_Window[1] , false) showCursor ( false ) end end addEventHandler ("onClientGUIClick", root, closeg) function () if source == SS1 then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == SS2 then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") end end ) Edited December 2, 2013 by Guest Link to comment
iPrestege Posted December 2, 2013 Share Posted December 2, 2013 سطر 40 بـ الايفنت ماحددت الزر .. أي روت .. سطر 48 الفنكشن ماله ايفنت .. سطر 32 حط بـ الايفنت 'localPlayer' .. حاول تستعين بـ الديبوق سكربت للمساعده .. Link to comment
iA7bk# Posted December 2, 2013 Author Share Posted December 2, 2013 طيب ممكن تعدلها لي اذا ما عليك امر لاني صراحه ما فهمت وش اعدل Link to comment
iPrestege Posted December 2, 2013 Share Posted December 2, 2013 والله ودي لكن ماحب اعدل غير بالنوت باد وماعندي النوت مانزلتة .. Link to comment
iA7bk# Posted December 2, 2013 Author Share Posted December 2, 2013 اها , مشكور لانك رديت بس ان شاء الله في احد بعدله لي بإنتظار المساعده...... Link to comment
AboShanab Posted December 2, 2013 Share Posted December 2, 2013 (edited) جرب # Window = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetVisible(Window , false) guiSetAlpha(Window,1) SS = guiCreateButton(20,203,493,119,"Start",false,Window) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,Window) guiSetFont(SS1,"sa-gothic") Label = guiCreateLabel(226,328,81,33,"***",false,Window) guiSetFont(Label,"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,Window) Image = guiCreateStaticImage(31,22,457,168,"1.png",false,Window) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker , function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( Window , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker , function ( ) guiSetVisible ( Window , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" , localPlayer , function () guiSetVisible ( Window , false ) showCursor ( false ) end ) addEventHandler("onClientGUIClick",root,function() if ( source == SS1 ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") elseif ( source == SS2 ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") elseif source == SS3 then guiSetVisible(Window , false) showCursor ( false ) end end) Edited December 2, 2013 by Guest Link to comment
The Killer Posted December 2, 2013 Share Posted December 2, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetAlpha(GUIEditor_Window[1],1) SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) guiSetFont(SS1,"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker , function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker , function ( ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" ,localPlayer, function () guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end ) addEventHandler("onClientGUIClick", root, if source == SS3 then guiSetVisible(GUIEditor_Window[1] , false) showCursor ( false ) end end ) addEventHandler("onClientGUIClick", root, function () if source == SS1 then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == SS2 then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") end end ) edit: # ابو شنب عندك الايفنت 'onClientPlayerWasted' هو حاط root المفروض localPlayer Link to comment
AboShanab Posted December 2, 2013 Share Posted December 2, 2013 @ The Killer : مشكور ع الملاحظة بس تعرف يعني مع السرعة وهيك .. Link to comment
iA7bk# Posted December 2, 2013 Author Share Posted December 2, 2013 ما ضبط الكود + الماركر ما تظهر ابد Link to comment
AboShanab Posted December 2, 2013 Share Posted December 2, 2013 ما ضبط الكود + الماركر ما تظهر ابد جربت الكود حقي ؟؟ Link to comment
The Killer Posted December 2, 2013 Share Posted December 2, 2013 GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) guiSetAlpha(GUIEditor_Window[1],1) SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) guiSetFont(SS,"sa-gothic") SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) guiSetFont(SS1,"sa-gothic") GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"sa-gothic") SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) addEventHandler ( "onClientMarkerHit" , MyMarker, function ( hitPlayer ) if hitPlayer == localPlayer then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) end end , false ) addEventHandler ( "onClientMarkerLeave" , MyMarker, function ( ) guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end , false ) addEventHandler ( "onClientPlayerWasted" , localPlayer, function () guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) end ) addEventHandler("onClientGUIClick", root, function () if (source == SS3) then guiSetVisible(GUIEditor_Window[1] , false) showCursor ( false ) end end ) addEventHandler("onClientGUIClick", root, function () if source == SS1 then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران بالسيارهـ") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == SS2 then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") end end ) Link to comment
iA7bk# Posted December 2, 2013 Author Share Posted December 2, 2013 يعطيكم الف عافيه اشتغل المود وسلمت اياديكم تمت الافاده شكراً Link to comment
AboShanab Posted December 2, 2013 Share Posted December 2, 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