فتى تبوك Posted December 8, 2012 Share Posted December 8, 2012 السلام عليكم ورحمة الله وبركاته مساكم الله بالخير يالربع ياشباب انا سويت زرين زر للعربي وزر للانقليزي كيف اغير اللغه؟ يعني اذا ضغطت زر العربي يصير الكلام عربي واذا ضغطت زر الانقليزي يصير الكلام انقليزي وسلامتكم Link to comment
TD[M]ER Posted December 8, 2012 Share Posted December 8, 2012 function onClick() if source == butoon[3] or source == Image.lang then if guiGetText ( butoon[3] ) ~= "English" then guiSetText ( mainBack, "Voice Mute Panel" ) guiSetText ( butoon[1], "Voice mute" ) guiSetText ( butoon[2], "Voice unmute" ) guiSetText ( lable.reason, "Enter the reason" ) guiSetText ( butoon[4], "Ok" ) guiSetText ( butoon[3], "English" ) elseif guiGetText ( butoon[3] ) ~= "عربي" then guiSetText ( mainBack, "لوحة التحكم بالمايك" ) guiSetFont(mainBack, newFontt) guiSetText ( butoon[1], "منع المايك" ) guiSetText ( butoon[2], "السماح بالمايك" ) guiSetText ( lable.reason, "أدخل السبب هنا" ) guiSetText ( butoon[4], "موافق" ) guiSetText ( butoon[3], "عربي" ) end end end addEventHandler("onClientGUIClick",root,onClick) ^ مثال من ميوت المايكـ حق سعد Link to comment
فتى تبوك Posted December 8, 2012 Author Share Posted December 8, 2012 function onClick() if source == butoon[3] or source == Image.lang then if guiGetText ( butoon[3] ) ~= "English" then guiSetText ( mainBack, "Voice Mute Panel" ) guiSetText ( butoon[1], "Voice mute" ) guiSetText ( butoon[2], "Voice unmute" ) guiSetText ( lable.reason, "Enter the reason" ) guiSetText ( butoon[4], "Ok" ) guiSetText ( butoon[3], "English" ) elseif guiGetText ( butoon[3] ) ~= "عربي" then guiSetText ( mainBack, "لوحة التحكم بالمايك" ) guiSetFont(mainBack, newFontt) guiSetText ( butoon[1], "منع المايك" ) guiSetText ( butoon[2], "السماح بالمايك" ) guiSetText ( lable.reason, "أدخل السبب هنا" ) guiSetText ( butoon[4], "موافق" ) guiSetText ( butoon[3], "عربي" ) end end end addEventHandler("onClientGUIClick",root,onClick) ^ مثال من ميوت المايكـ حق سعد يجي اسم النافذه ولا مايجي؟ Link to comment
فتى تبوك Posted December 8, 2012 Author Share Posted December 8, 2012 function () if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) صححوه لي Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 function click() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end addEventHandler('onClientGUIClick',root,'click)) صححوه لي Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 function click() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end addEventHandler('onClientGUIClick',root,click) صححوه لي Link to comment
فتى تبوك Posted December 8, 2012 Author Share Posted December 8, 2012 ماظبط صارت النافذه فاضيه Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 function click() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end addEventHandler('onClientGUIClick',root,click) صححوه لي Link to comment
3NAD Posted December 8, 2012 Share Posted December 8, 2012 addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Button[1] then -- guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then -- guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) Link to comment
3NAD Posted December 8, 2012 Share Posted December 8, 2012 debugscript 3 وش المشكلة ؟ Link to comment
Mr.T9 Posted December 8, 2012 Share Posted December 8, 2012 function () if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) صححوه لي addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 function () if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) صححوه لي addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) شوف الردود الي فوق قبل تتكلم ^^ Link to comment
Mr.T9 Posted December 8, 2012 Share Posted December 8, 2012 function () if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) صححوه لي addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) شوف الردود الي فوق قبل تتكلم ^^ وش يهمك !!! Link to comment
فتى تبوك Posted December 8, 2012 Author Share Posted December 8, 2012 اطرح سطر 5 GUIEditor_Window[1] = guiCreateWindow(176,127,480,342,"=======[Panel Zombie and Hagwlh By sultanalbalawi]=======",false) Link to comment
./BlackBird# Posted December 8, 2012 Share Posted December 8, 2012 addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == GUIEditor_Button[1] ) then guiSetText(GUIEditor_Window[1],"اهلا وسهلا بك بالسيرفر") guiSetText(GUIEditor_Button[5],"هجوله") guiSetText(GUIEditor_Button[4],"زومبي") guiSetText(GUIEditor_Button[3],"x") elseif ( source == GUIEditor_Button[2] ) then guiSetText(GUIEditor_Window[1],"Panel") guiSetText(GUIEditor_Button[5],"drift") guiSetText(GUIEditor_Button[4],"zombie") guiSetText(GUIEditor_Button[3],"x") end end ) شوف الردود الي فوق قبل تتكلم ^^ وش يهمك !!! ي بابا انا طرحت ذذ الكود و عناد طرحه و صاحب الموضوع حط الي في debugscript و طلع الخطا مو هنا Link to comment
3NAD Posted December 8, 2012 Share Posted December 8, 2012 ضيف بـ أول سطر GUIEditor_Window = {} Link to comment
فتى تبوك Posted December 8, 2012 Author Share Posted December 8, 2012 ضيف بـ أول سطر GUIEditor_Window = {} عشت يابعد حيي 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