Adham Posted March 20, 2016 Share Posted March 20, 2016 سلام عليكم ابي كودين اول كود انا عامل button اسمه Sleep عاوز اليضعط عليه ينام واليضعط عليه تاني يصحي اسم ال button GUIEditor.button[3] -------- الطلب التاني انا عامل buutton اسمه Set عاوز اليضعط عليه يجلس و اليضعط عليه تاني يقف . ----------- الطلب التات انا عامل button اسمو Go AFK عاوزا ليضعط غليه يروح افك. Link to comment
MrSAUD1 Posted March 20, 2016 Share Posted March 20, 2016 ؟ شوف لو كذا ما راح احد يسويه جهاز , حاوول تسوي انت و بنساعدك با اذن الله ! Link to comment
MrSAUD1 Posted March 20, 2016 Share Posted March 20, 2016 الفنكشن الى تحتجها , 'onClientGUIClick' triggerServerEvent setPedAnimation Link to comment
` Allawi Posted March 20, 2016 Share Posted March 20, 2016 بالنسبة لطلب الثالث شلون تبيه يروح افك ؟ Link to comment
Adham Posted March 20, 2016 Author Share Posted March 20, 2016 معلش ممكن الكودات جاهزه "؟ Link to comment
MrSAUD1 Posted March 20, 2016 Share Posted March 20, 2016 معلش ممكن الكودات جاهزه "؟ قلت لك الافضل تحاول تسويه و احنا بنساعدك , لو غلط في شي انا و الكل هنا بنساعدك , + ترا والله بسيط , كله حدث يوم يضغط الزر , يسوي ترقير و يعطية حركة بس ! Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 مثال بسيط ان شاء الله بيفيدك addCommandHandler( 'نوم',function () setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') end) addCommandHandler( 'صاحي',function () setPedAnimation(localPlayer , nil) end) Link to comment
Adham Posted March 21, 2016 Author Share Posted March 21, 2016 لا انا عاوز اعمله علي button وتعطيني حتا اكتب فيها اسم الbuton Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 addEventHandler('onClientGUIClick',root, function() if (source == اسم الزر )then -- الكود end end) Link to comment
MrSAUD1 Posted March 21, 2016 Share Posted March 21, 2016 لا انا عاوز اعملهعلي button وتعطيني حتا اكتب فيها اسم الbuton الرجال ما قصر معك , اعطاك اهم شي مطلوب , يبيك انت تسويه بنفسك , مو كل يوم تطلب , انت الى راح تستفيد راح تتعلم اكثر و تعتمد على نفسك , انت حوله من كلمه في اف8 الى زر ! Link to comment
Adham Posted March 21, 2016 Author Share Posted March 21, 2016 طيب ايش الخطا كدا؟ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[3] then setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') end) if source == GUIEditor.button[3] then setPedAnimation(localPlayer , nil) end) Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 طيبايش الخطا كدا؟ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[3] then setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') end) if source == GUIEditor.button[3] then setPedAnimation(localPlayer , nil) end) اسم الزرر متشابهين نفس بعضهم Link to comment
MrSAUD1 Posted March 21, 2016 Share Posted March 21, 2016 طيبايش الخطا كدا؟ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[3] then setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') end) if source == GUIEditor.button[3] then setPedAnimation(localPlayer , nil) end) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[3] then setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') elseif source == GUIEditor.button[3] then setPedAnimation(localPlayer , nil) end end) + الاعب بس راح يشوف نفسه نايم اما عند الاعبين الثانين صاحي ! Link to comment
Adham Posted March 21, 2016 Author Share Posted March 21, 2016 مشكور ما قصرت .. بس طلب تاني ابي كود زي انت ما عطني Set عاوز اليضعط عليه انا عامل مثلن button اسمه Set اليضعط عليه يجلس Link to comment
MrSAUD1 Posted March 21, 2016 Share Posted March 21, 2016 مشكور ما قصرت ..بس طلب تاني ابي كود زي انت ما عطني Set عاوز اليضعط عليه انا عامل مثلن button اسمه Set اليضعط عليه يجلس غير اسم الحركة بس , addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[3] then setPedAnimation ( localPlayer ,'CRACK', 'crckidle2') elseif source == GUIEditor.button[4] then setPedAnimation(localPlayer , nil) elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer,"CRIB", "PED_Console_Loop") end end) اظن ذي الحركة الى تبيها Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 اسماء الحركات اختار منهم الحركه اللى تعجبك Animations Link to comment
Adham Posted March 21, 2016 Author Share Posted March 21, 2016 لو سمحتم ابي كود برده نفس كدا اليضعط علي AFK يقف ثابت وما يتحرك اسم الحركه BD_Fire1 Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 سوي اللى تعرف تسويه واطرح محاولتك Link to comment
Adham Posted March 21, 2016 Author Share Posted March 21, 2016 addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[9] then setPedAnimation ( localPlayer ,'CRACK', 'BD_Fire1') elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer , nil) elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer,"CRIB", "BD_Fire1") end end) Link to comment
MrSAUD1 Posted March 21, 2016 Share Posted March 21, 2016 addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[9] then setPedAnimation ( localPlayer ,'CRACK', 'BD_Fire1') elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer , nil) elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer,"CRIB", "BD_Fire1") end end) حاط نفس حركة النوم انت + ما تقول تبيه يجلس ! اعطتيك فوق حطه و خلااص Link to comment
#|_oskar_|# Posted March 21, 2016 Share Posted March 21, 2016 ذا اللى تقصده ؟ كلنت local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 174) / 2, (screenH - 80) / 2, 174, 80, "", false) guiWindowSetSizable(window, false) guiSetAlpha(window, 1.00) button = guiCreateButton(9, 26, 155, 44, "AFK", false, window) addEventHandler("onClientGUIClick",root, function() if (source == button )then triggerServerEvent("afk",localPlayer) end end) سيرفر addEvent("afk",true) addEventHandler("afk",root,function () afk = not afk setPedAnimation (source,'BEACH', 'ParkSit_M_loop') setElementFrozen (source, true ) if afk == false then setPedAnimation (source, nil) setElementFrozen (source, false ) end end) Link to comment
Mr.R Posted March 21, 2016 Share Posted March 21, 2016 بالنسبه للأفك الولد قصدهـ كذا function AFK ( ) if ( source == اسم الزر ) then setElementInterior ( localPlayer, 0, x, y, z ) -- بالاحداثيات فالمكان الي يعجبك داخل الانترو x, y, z بدل 0 بالانترو الي تبيه ينتقل له وبدل setElementFrozen ( localPlayer, true ) outputChatBox ( "* تم نقلكـ لعالم الافك", 255, 255, 255, true ) else setElementInterior ( localPlayer, 0, x, y, z ) --بالاحداثيات الي تبيه يرجع لها للعالم الحقيقي x, y, z بدل setElementFrozen ( localPlayer, false ) outputChatBox ( "* تم الرجوع للعالم الحقيقي", 255, 255, 255, true ) end end addEventHandler ( "onClientGUIClick", getRootElement ( ), AFK ) 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