Oussama_Dz Posted June 24, 2017 Share Posted June 24, 2017 السلام عليكم ورحمة الله تعالى وبركاته اليوم ان شاء الله ابي كود يتغير عمل الزر متل يكون مكتوب عليه انجليزي لما يضغط عليه تصير اللغة انجليزية ويتحول الزر الى Arabic مثل لوحة الادمنية Freeze to Unfreeze وشكرا Link to comment
Oussama_Dz Posted June 25, 2017 Author Share Posted June 25, 2017 (edited) لكن تتغير وضيفته يعني يصير Unfreez وسوي Unfreez والعكس حق freez Edited June 25, 2017 by El_MaJnOn Link to comment
#BrosS Posted June 25, 2017 Share Posted June 25, 2017 1 minute ago, El_MaJnOn said: لكن تتغير وضيفته يعني يصير Unfreez وسوي Unfreez والعكس حق freez if guiGetText(....) == "freez" then guiSetText(...,"unfreez" else guiSetText(...,"freez") end ? (♥ω♥*)(◍•ᴗ•◍)❤(●♡∀♡)(。♥‿♥。)(●♡∀♡) 1 Link to comment
Oussama_Dz Posted June 25, 2017 Author Share Posted June 25, 2017 دي عارفها لكن ابي تغير الوظيفة Link to comment
#Mr.Pop Posted June 25, 2017 Share 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 Link to comment
Oussama_Dz Posted June 25, 2017 Author Share Posted June 25, 2017 شكرا @#Mr.Pop انت ايضا ما قصرت شكرا@#BrosS Link to comment
#Mr.Pop Posted June 25, 2017 Share Posted June 25, 2017 (edited) العفو حياك اي وقت اخي El_MaJnOn Edited June 25, 2017 by #Mr.Pop Link to comment
MR.StoRm Posted June 25, 2017 Share Posted June 25, 2017 38 minutes ago, #Mr.Pop said: Cleint غيرها لـ Client Link to comment
#BrosS Posted June 25, 2017 Share 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) تفضل اخي الكود تقدر تغير مش مجرب ماهذا يا غلااااااااام ضض اسم الحدث غلط وانت عامل اذا ضغط على الزر يغير الكتابة . اذا ماضغط على الزر نفسه تتغير بردو Link to comment
iMr.WiFi..! Posted June 26, 2017 Share 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..! 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