Oussama_Dz Posted June 24, 2017 Posted June 24, 2017 السلام عليكم ورحمة الله تعالى وبركاته اليوم ان شاء الله ابي كود يتغير عمل الزر متل يكون مكتوب عليه انجليزي لما يضغط عليه تصير اللغة انجليزية ويتحول الزر الى Arabic مثل لوحة الادمنية Freeze to Unfreeze وشكرا
Oussama_Dz Posted June 25, 2017 Author Posted June 25, 2017 (edited) لكن تتغير وضيفته يعني يصير Unfreez وسوي Unfreez والعكس حق freez Edited June 25, 2017 by El_MaJnOn
#BrosS Posted June 25, 2017 Posted June 25, 2017 1 minute ago, El_MaJnOn said: لكن تتغير وضيفته يعني يصير Unfreez وسوي Unfreez والعكس حق freez if guiGetText(....) == "freez" then guiSetText(...,"unfreez" else guiSetText(...,"freez") end ? (♥ω♥*)(◍•ᴗ•◍)❤(●♡∀♡)(。♥‿♥。)(●♡∀♡) 1 “من أراد الفشل عليه بالنجاح”
#Mr.Pop Posted June 25, 2017 Posted June 25, 2017 addEventHandler("onCleintGUIClick",root, function () if source == buton then guiSetText(buton,"Freeze") triggerServerEvent("GUIFreeze",localPlayer) else guiSetText(buton,"UnFreeze") triggerServerEvent("GUIUnFreeze",localPlayer) end end) تفضل اخي الكود تقدر تغير مش مجرب 1
Oussama_Dz Posted June 25, 2017 Author Posted June 25, 2017 شكرا @#Mr.Pop انت ايضا ما قصرت شكرا@#BrosS
#Mr.Pop Posted June 25, 2017 Posted June 25, 2017 (edited) العفو حياك اي وقت اخي El_MaJnOn Edited June 25, 2017 by #Mr.Pop
MR.StoRm Posted June 25, 2017 Posted June 25, 2017 38 minutes ago, #Mr.Pop said: Cleint غيرها لـ Client
#BrosS Posted June 25, 2017 Posted June 25, 2017 49 minutes ago, #Mr.Pop said: addEventHandler("onCleintGUIClick",root, function () if source == buton then guiSetText(buton,"Freeze") triggerServerEvent("GUIFreeze",localPlayer) else guiSetText(buton,"UnFreeze") triggerServerEvent("GUIUnFreeze",localPlayer) end end) تفضل اخي الكود تقدر تغير مش مجرب ماهذا يا غلااااااااام ضض اسم الحدث غلط وانت عامل اذا ضغط على الزر يغير الكتابة . اذا ماضغط على الزر نفسه تتغير بردو “من أراد الفشل عليه بالنجاح”
iMr.WiFi..! Posted June 26, 2017 Posted June 26, 2017 (edited) Float = false button = BUTTON -- هنا اسم الزر الخاص بك addEventHandler("onClientGUIClick",root, function () if source == button then Float = Float == false and true or false Text = Float == false and "Freeze" or "UnFreeze" triggerText = Float == false and "GUIFreeze" or "GUIUnFreeze" guiSetText( buton, Text) triggerServerEvent( triggerText ,localPlayer) end end ) Edited June 26, 2017 by iMr.WiFi..! 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)
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