taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 طيب مثال @_@ Link to comment
!#NssoR_) Posted September 7, 2015 Share Posted September 7, 2015 موجود كود إغلاق الوحة بالكود الي عطيتك من سطر 29 الي 31 Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ادري بس ما عرفت من وين بدايته الى نهايته Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 bool guiSetVisible ( element guiElement, bool state ) Required Arguments : guiElement: the GUI element whose visibility is to be changed state: the new visibility state addEventHandler("onClientGUIClick",resourceRoot, function() if source == btn then guiSetVisible(win , false) end end) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 (edited) addEventHandler("onClientGUIClick",resourceRoot, function() if source == btn then GUIEditor.button[7](win , false) end end) كذا تصير؟ +مشكور عفريت حليت مشكله الدم والدرع بس ما ينفع ازيد مثلن يعطي 200% زودت الرقم بالسيرفر ما تغير هههه Edited September 7, 2015 by Guest Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 وضح وين احط مكان الزر addEventHandler("onClientGUIClick",resourceRoot, function() if source == هنا اسم الزرthen guiSetVisible(النافذه, false) end end) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 وش يعني النافذه ؟؟؟ يعني النافذة الرئيسه الي تفتح مثلن بأف 2؟ Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 (edited) وش يعني النافذه ؟؟؟يعني النافذة الرئيسه الي تفتح مثلن بأف 2؟ انت تقول زر يغلق النافذه حط اسم النافذه اللي تبيه يغلقها يوم يظغطه ومثل ماقالك اخوي نصور رح اقرا من 29 الى 31 Edited September 7, 2015 by Guest Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 تم تم ضبط شكرا عفريت+روجوا نسور Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 معك كود لما افتح اللوحه يطلع صوت؟؟ مع مثال؟ Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 (edited) تم تم ضبط شكرا عفريت+روجوا نسور تيقا guiGetVisible -- عشان تحقق ان النافذه انفتحت playSound --بدأ تشغيل الصوت addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (النافذه ) if guiV == true then playSound("مسار الصوت" ) end end) Edited September 7, 2015 by Guest Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 معلش اخوي امثله لانه انا مبرمج جديد وجالس اسوي مكتبه للكودات للمستقبل بغلبك معي Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 (edited) يعني الحين مسار الصوت اسم ملف الاغنيه؟؟ والنافذه اسم النافذه الي تفتح بزر معين؟ Edited September 7, 2015 by Guest Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 شوف فوق عدلت لك مثال يعني الحين مسار الصوت اسم ملف الاغنيه؟؟والنافذه اسم النافذه الي تفتح بزر معين؟ يب Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 ما طلع صوت الكلينت 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 ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if 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" ) end end) الميتا Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 +مشكور عفريت حليت مشكله الدم والدرع بس ما ينفع ازيد مثلن يعطي 200% زودت الرقم بالسيرفر ما تغير هههه يب يمديك تخلي الدم 200 خل السيرفر كذا 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) Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 ما طلع صوت الكلينت 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 ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if 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" ) end end) الميتا playSound("intro" ) نسيت تحط الصيغه mp3 playSound("intro.mp3" ) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 شو ما فهمت وين احطهم؟ Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 شو ما فهمت وين احطهم؟ playSound("intro.mp3") Link to comment
0m4r Posted September 7, 2015 Share Posted September 7, 2015 لاهنت يوم تجي تحط كود استخدم واذا موب فاهم شف الشرح هنا viewtopic.php?f=160&t=46670 Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 تقصد بالكلنت؟؟ حطيتها وما تغير 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 ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if 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) Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 عفريت شكلك سهران؟؟ ههههههههههههه لانه بدي كود كيف احط صورة باللوحه بعد ما اتعلم طريقه اضافه صوت اما لو تقفل مو مشكله Link to comment
#Mr.Rajo~,< Posted September 7, 2015 Share Posted September 7, 2015 وش يطلع لك ؟ من خطأ Link to comment
taha201100 Posted September 7, 2015 Author Share Posted September 7, 2015 المود يشتغل عادي لكن لما افتح اللوحه ما يطلع صوت رابط المود http://www.gulfup.com/?wuNwD8 طبعا الاغنيه تجريبه ههههه 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