MA[S]RIY Posted June 16, 2017 Posted June 16, 2017 السلام عليكم اوالا ابي اكواد التسجيل التلقائي ------ ثانيا كيف احط صوره ع زر = البوتون ------------- ثالثا كيف اخلي اليبل يكون لونه اسود ولما احط عليه سهم الماوس يكون لونه احمر اشيل السهم من عليه يرجع اسود وهكذا # ؟ مصري #
Adham Posted June 16, 2017 Posted June 16, 2017 اولأ: التسجل التلقائي executeSQLQuery او db functions ثانيأ: من مود guieditor نفسه ثالثأ "onClientMouseEnter" guiLabelSetColor قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
AHMED MOSTAFA Posted June 16, 2017 Posted June 16, 2017 تقدر تستعمل حفظ البيانات حق لوحة التسجيل عن طريق ملفات xml و وقت اللاعب يدخل سوي ارجاع للقيم الموجودة ( من ملف كلينت ) وارسلها بالترايجر لملف سيرفر اللي فيه امر التسجيل 1 April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
coNolel Posted June 16, 2017 Posted June 16, 2017 طلبك الثالت لو تبيه دي إكس استعمل اليوزفل فنكشن function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end IT Projet Manager
N3xT Posted June 16, 2017 Posted June 16, 2017 24 minutes ago, coNolel said: طلبك الثالت لو تبيه دي إكس استعمل اليوزفل فنكشن function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end ذا يتحقق من مكان الماوس ماله شغل بتغيير اللون 1
MR.StoRm Posted June 16, 2017 Posted June 16, 2017 48 minutes ago, Deativated said: اولأ: التسجل التلقائي executeSQLQuery او db functions ثانيأ: من مود guieditor نفسه ثالثأ "onClientMouseEnter" guiLabelSetColor + "onClientMouseLeave"
MA[S]RIY Posted June 16, 2017 Author Posted June 16, 2017 طيب الطلب الثالث كيف تخلي لما الماوس يلمس الي بل او يخرج من الليل لو ممكن مثال # مصري #
^iiEcoo'x_) Posted June 16, 2017 Posted June 16, 2017 addEventHandler( "onClientMouseEnter", getRootElement(), function(aX, aY) outputChatBox( "You're pointing at a GUI element at ("..tostring(aX)..", "..tostring(aY)..")") end ) - Hashemite Kingdom Of Jordan -
coNolel Posted June 16, 2017 Posted June 16, 2017 2 hours ago, N3xT said: ذا يتحقق من مكان الماوس ماله شغل بتغيير اللون الله عليك بس يعني ما يقدر يسوي متغير باللون ويغيره ؟ IT Projet Manager
MA[S]RIY Posted June 16, 2017 Author Posted June 16, 2017 3 hours ago, #_iMr.[E]coo said: addEventHandler( "onClientMouseEnter", getRootElement(), function(aX, aY) outputChatBox( "You're pointing at a GUI element at ("..tostring(aX)..", "..tostring(aY)..")") end ) اخي ذا مثال الويكي ابي مثال منك يكون بسيط وسهل مصري #
Adham Posted June 16, 2017 Posted June 16, 2017 (edited) addEventHandler ( "onClientMouseEnter", resouceRoot, function ( ) if source == label then guiLabelSetColor ( label, 255, 255, 255 ) end end ) addEventHandler ( "onClientMouseLeave", resouceRoot, function ( ) if source == label then guiLabelSetColor ( label, 255, 255, 0 ) end end ) Edited June 16, 2017 by Deativated قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
MA[S]RIY Posted June 17, 2017 Author Posted June 17, 2017 5 hours ago, Deativated said: addEventHandler ( "onClientMouseEnter", resouceRoot, function ( ) if source == label then guiLabelSetColor ( label, 255, 255, 255 ) end end ) addEventHandler ( "onClientMouseLeave", resouceRoot, function ( ) if source == label then guiLabelSetColor ( label, 255, 255, 0 ) end end ) اولا مشكور علي ذا الطلب ^ ثانيا طلب وضع صوره ع زر تمام لاكن م تقدر تضغط ع الزر وش الحل ؟ مصري #
Master_MTA Posted June 17, 2017 Posted June 17, 2017 function guiCreateButton(x,y,x1,y1,bla) local img=guicreatestaticimage(x,y,x1,y1,blabla) local lbl=guiCreateLabel(x,y,x1,y1,blalalala) return img end طبعا الكود غير صحيح لكن انا عطيتك فكره حاول بنفسك 1 hour ago, MARIY said: اولا مشكور علي ذا الطلب ^ ثانيا طلب وضع صوره ع زر تمام لاكن م تقدر تضغط ع الزر وش الحل ؟ Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
MA[S]RIY Posted June 17, 2017 Author Posted June 17, 2017 معلش انا مو فاهم وش يعني return img ممكن احد يشرحها لي ؟ مصري #
` Allawi Posted June 17, 2017 Posted June 17, 2017 1 hour ago, MARIY said: معلش انا مو فاهم وش يعني return img ممكن احد يشرحها لي ؟ تعني إرجاع القيمة كمثال توضيحي function getPlayerName ( player ) return "Allawi" end addEventHandler ( "onPlayerChat", root, function ( message, type ) if ( type == 0 ) then cancelEvent ( ) outputChatBox ( getPlayerName ( source ) .. ": " .. message ) end end ) الأن هنا عندما تقوم بالكتابة في الشات يحضر لك إسم اللاعب ورسالته هنا وضعنا بدلاً من أن يضع إسم اللاعب يقوم بوضع إسم إختياري وهو "Allawi" إن شاء الله تكون فهمت ..
MA[S]RIY Posted June 17, 2017 Author Posted June 17, 2017 7 minutes ago, ` Allawi said: تعني إرجاع القيمة كمثال توضيحي function getPlayerName ( player ) return "Allawi" end addEventHandler ( "onPlayerChat", root, function ( message, type ) if ( type == 0 ) then cancelEvent ( ) outputChatBox ( getPlayerName ( source ) .. ": " .. message ) end end ) الأن هنا عندما تقوم بالكتابة في الشات يحضر لك إسم اللاعب ورسالته هنا وضعنا بدلاً من أن يضع إسم اللاعب يقوم بوضع إسم إختياري وهو "Allawi" إن شاء الله تكون فهمت .. فهمت بس في شئ بسيط وش يعني ذا الكود if ( type == 0 ) then مصري #
` Allawi Posted June 17, 2017 Posted June 17, 2017 4 minutes ago, MARIY said: فهمت بس في شئ بسيط وش يعني ذا الكود if ( type == 0 ) then هذا تحقق من نوع الرسالة وهو الارقمنت الثاني من حدث عند الكتابة في الشات وتوجد له 3 أنواع يمكنك قراءة الويكي لمعرفة المزيد onPlayerChat
^iiEcoo'x_) Posted June 17, 2017 Posted June 17, 2017 موجود شرح بقسم شروحات البرمجة - Hashemite Kingdom Of Jordan -
F_F Posted June 17, 2017 Posted June 17, 2017 كخبير في اللغة ساشرح لك الارقمنتات "onPlayerChat" message = الرسالة messagetype = نوع الرسالة اول نوع وهي رسالة عادية ثاني نوع : رسالة شخصية ثالث نوع : رسالة للفريق
#Soking Posted June 17, 2017 Posted June 17, 2017 15 minutes ago, F_F said: كخبير في اللغة ساشرح لك الارقمنتات "onPlayerChat" message = الرسالة messagetype = نوع الرسالة اول نوع وهي رسالة عادية ثاني نوع : رسالة شخصية ثالث نوع : رسالة للفريق
MA[S]RIY Posted June 18, 2017 Author Posted June 18, 2017 18 hours ago, Master_MTA said: function guiCreateButton(x,y,x1,y1,bla) local img=guicreatestaticimage(x,y,x1,y1,blabla) local lbl=guiCreateLabel(x,y,x1,y1,blalalala) return img end طبعا الكود غير صحيح لكن انا عطيتك فكره حاول بنفسك سويت الكود لاكن الزر اختفي خالص اكنو مو موجود الكود function b1() log = guiCreateButton(187, 127, 88, 38,"", false, wnd) imgl = guiCreateStaticImage(187, 127, 88, 38, "gg.png", false, wnd) lbll =guiCreateLabelguiCreateLabel(187, 127, 88, 38, "Login", false, wnd) return imgl end ياريت حد يعدلو يخليه تمام #Edit: ابي مثل ذي مصري #
Master_MTA Posted June 18, 2017 Posted June 18, 2017 function guiCreateButton(x,y,x1,y1,text,state,realative,png) local imgl = guiCreateStaticImage(x,y,x1,y1,png, state, realative) local lbll =guiCreateLabelguiCreateLabel(x+0.4,y,x1,y1, text, state, realative) return imgl end log = guiCreateButton(187, 127, 88, 38,"Login", false, wnd,'gg.png') ------------نجي للشرح ---------------187, 127, 88, 38,"Login", false, wnd الى هنا كانك سويت زر عادي -------------------------gg.pngذي الصوره اللي تبي تحطها مكان الزر 1 hour ago, MARIY said: سويت الكود لاكن الزر اختفي خالص اكنو مو موجود الكود function b1() log = guiCreateButton(187, 127, 88, 38,"", false, wnd) imgl = guiCreateStaticImage(187, 127, 88, 38, "gg.png", false, wnd) lbll =guiCreateLabelguiCreateLabel(187, 127, 88, 38, "Login", false, wnd) return imgl end ياريت حد يعدلو يخليه تمام #Edit: ابي مثل ذي بالتوفيق Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
iMr.WiFi..! Posted June 18, 2017 Posted June 18, 2017 2 hours ago, Master_MTA said: function guiCreateButton(x,y,x1,y1,text,state,realative,png) local imgl = guiCreateStaticImage(x,y,x1,y1,png, state, realative) local lbll =guiCreateLabelguiCreateLabel(x+0.4,y,x1,y1, text, state, realative) return imgl end log = guiCreateButton(187, 127, 88, 38,"Login", false, wnd,'gg.png') ------------نجي للشرح ---------------187, 127, 88, 38,"Login", false, wnd الى هنا كانك سويت زر عادي -------------------------gg.pngذي الصوره اللي تبي تحطها مكان الزر بالتوفيق في خطأ بسطر الثالث Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
MA[S]RIY Posted June 18, 2017 Author Posted June 18, 2017 (edited) علي ما اظن كده صح لو غلط قول ؟ -- function guiCreateButton(x,y,x1,y1,text,state,realative,png) local imgl = guiCreateStaticImage(x,y,x1,y1,png, state, realative) local lbll =guiCreateLabel(x+0.4,y,x1,y1, text, state, realative) return imgl end log = guiCreateButton(187, 127, 88, 38,"Login", false, wnd,'gg.png') صح كده # ؟ Edited June 18, 2017 by MA[S]RIY مصري #
Master_MTA Posted June 18, 2017 Posted June 18, 2017 32 minutes ago, iMr.WiFi..! said: في خطأ بسطر الثالث قصدك الرابع كررت الفنكشن بالخطا اعذروني +_+ Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
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