Mr-Kartha Posted August 31, 2012 Share Posted August 31, 2012 local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) -- غير احداثيات الماركر addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( window ,true )--غير اسم النافذه window showCursor( true ) guiSetInputEnabled(false) end هاذ الماركر ما يجي هاذي النافذه بس مو موجود ملف السيرفر بس كلنت ملف السيرفر جاهز GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(195,209,395,295,"ورشة الهندي بواسطة مستر الكارثه",false) GUIEditor_Radio[1] = guiCreateRadioButton(178,-1721,5,600,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0329,0.0678,0.9519,0.0847,"مرحبا صديقي مذا تريد ان تفعل اليوم بسيارتك ",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(0.3316,0.2475,0.3165,0.7017,"Hndi.png",true,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.6506,0.1831,0.3342,0.0949,"هل تريد تغير جنوط السياره",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.6633,0.2746,0.3089,0.1017,"جنط رقم 1",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.6658,0.3966,0.3114,0.1051,"جنط رقم 2",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6684,0.5186,0.3089,0.1051,"جنط رقم 3",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.6709,0.6407,0.3063,0.1051,"جنط رقم 4",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.6734,0.7559,0.3038,0.1085,"جنط رقم 5",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.0228,0.0712,0.1342,0.1085,"اغلاق",true,GUIEditor_Window[1]) close = guiCreateButton(200,400,90,30,"اغلاق",false,6) GUIEditor_Label[3] = guiCreateLabel(0,0.2034,0.3392,0.0712,"هل تريد أضافة هادروليك ",true,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(0.0228,0.2814,0.2987,0.0983,"أضافة هادروليك",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) GUIEditor_Label[4] = guiCreateLabel(0.0329,0.4237,0.3013,0.0814,"صديق تبي نيترو ",true,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(0.0278,0.522,0.2937,0.0949,"اضافة نيترو",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) GUIEditor_Label[5] = guiCreateLabel(0.0329,0.6271,0.2835,0.0441,"-----------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(0.0354,0.6814,0.2709,0.0644,"جميع الحقوق محفوظه لدى ",true,GUIEditor_Window[1]) GUIEditor_Label[7] = guiCreateLabel(0.0304,0.7525,0.2886,0.0542,"مستر الكارثه ",true,GUIEditor_Window[1]) GUIEditor_Label[8] = guiCreateLabel(0.0278,0.8136,0.2962,0.0576,"مستر حريقا ",true,GUIEditor_Window[1]) GUIEditor_Label[9] = guiCreateLabel(0.0152,0.861,0.3038,0.0508,"--------------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[10] = guiCreateLabel(0.0228,0.9051,0.2861,0.0678," [email protected] ",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------ زر اخفاء النافذه --------------------------------------------------------------------------------------------------------- unction ToggletaplMenu() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end ------------------------------------------------------------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("1010",getLocalPlayer()) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("1009",getLocalPlayer()) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("1008",getLocalPlayer()) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent("1087",getLocalPlayer()) elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent("1025",getLocalPlayer()) end end ) function CLOSE() guiSetVisible( GUIEditor_Window[1], false ) showCursor(false) end addEventHandler("onClientGUIClick", اغلاق CLOSE, false) - - زر اغلاق النافذه ----------------------------------الماركر--------------------------------------------- local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) -- احداثيات الماركر addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor_Window[1] ,true )--اسم النافذه showCursor( true ) guiSetInputEnabled(false) end end ) اخر شي الماركر Link to comment
TAPL Posted August 31, 2012 Share Posted August 31, 2012 سطر 34 unction ToggletaplMenu() f ناقص function ToggletaplMenu() Link to comment
3NAD Posted August 31, 2012 Share Posted August 31, 2012 سسطر 67 × إيفنت addEventHandler("onClientGUIClick", اغلاق CLOSE, false) التصحيح addEventHandler("onClientGUIClick", close , CLOSE) Link to comment
Mr-Kartha Posted August 31, 2012 Author Share Posted August 31, 2012 جاري التجربه يا تابل جاري التجربه يا عناد Link to comment
Mr-Kartha Posted August 31, 2012 Author Share Posted August 31, 2012 الماركر ما يطلع الماركر عندي لما المسه تطلع نافذه Link to comment
3NAD Posted August 31, 2012 Share Posted August 31, 2012 ججرب ذآ GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(195,209,395,295,"ورشة الهندي بواسطة مستر الكارثه",false) GUIEditor_Radio[1] = guiCreateRadioButton(178,-1721,5,600,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0329,0.0678,0.9519,0.0847,"مرحبا صديقي مذا تريد ان تفعل اليوم بسيارتك ",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(0.3316,0.2475,0.3165,0.7017,"Hndi.png",true,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(0.6506,0.1831,0.3342,0.0949,"هل تريد تغير جنوط السياره",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.6633,0.2746,0.3089,0.1017,"جنط رقم 1",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.6658,0.3966,0.3114,0.1051,"جنط رقم 2",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.6684,0.5186,0.3089,0.1051,"جنط رقم 3",true,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(0.6709,0.6407,0.3063,0.1051,"جنط رقم 4",true,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(0.6734,0.7559,0.3038,0.1085,"جنط رقم 5",true,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(0.0228,0.0712,0.1342,0.1085,"اغلاق",true,GUIEditor_Window[1]) close = guiCreateButton(200,400,90,30,"اغلاق",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(0,0.2034,0.3392,0.0712,"هل تريد أضافة هادروليك ",true,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(0.0228,0.2814,0.2987,0.0983,"أضافة هادروليك",true,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(0.0329,0.4237,0.3013,0.0814,"صديق تبي نيترو ",true,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(0.0278,0.522,0.2937,0.0949,"اضافة نيترو",true,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(0.0329,0.6271,0.2835,0.0441,"-----------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(0.0354,0.6814,0.2709,0.0644,"جميع الحقوق محفوظه لدى ",true,GUIEditor_Window[1]) GUIEditor_Label[7] = guiCreateLabel(0.0304,0.7525,0.2886,0.0542,"مستر الكارثه ",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) GUIEditor_Label[8] = guiCreateLabel(0.0278,0.8136,0.2962,0.0576,"مستر حريقا ",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) GUIEditor_Label[9] = guiCreateLabel(0.0152,0.861,0.3038,0.0508,"--------------------------------",true,GUIEditor_Window[1]) GUIEditor_Label[10] = guiCreateLabel(0.0228,0.9051,0.2861,0.0678," [email protected] ",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------ كود ابقاء النافذه مخفية ------------------------------------------------------------- addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == close ) then -- زر إغلاق النافذة guiSetVisible( GUIEditor_Window[1], false ) showCursor(false) elseif ( source == GUIEditor_Button[1] ) then triggerServerEvent("1010",getLocalPlayer()) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("1009",getLocalPlayer()) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("1008",getLocalPlayer()) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent("1087",getLocalPlayer()) elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent("1025",getLocalPlayer()) end end ) ----------------------------------الماركر--------------------------------------------- local Marker = createMarker ( 1876.2318115234, 243.9450378418, 225.65536499023, "cylinder", 2, 255, 255, 0, 150 ) -- احداثيات الماركر addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor_Window[1] ,true )--اسم النافذه showCursor( true ) guiSetInputEnabled(false) end end ) Link to comment
Mr-Kartha Posted August 31, 2012 Author Share Posted August 31, 2012 شوف الحين الحمدلله رب العالمين شتغل بس يوم الدخل الشعله الزرقاء ما تطلع النافذه Link to comment
3NAD Posted August 31, 2012 Share Posted August 31, 2012 اكتب بـ أف8 debugscript 3 و شوف وش الخطأ Link to comment
sudi111 Posted September 1, 2012 Share Posted September 1, 2012 ضيف الصورة لملف الميتا 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