Jump to content

مساعده


Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاته

مساكم الله بالخير يالربع

ياشباب انا سويت زرين

زر للعربي وزر للانقليزي

كيف اغير اللغه؟

يعني اذا ضغطت زر العربي يصير الكلام عربي واذا ضغطت زر الانقليزي يصير الكلام انقليزي وسلامتكم

Posted
  
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) 
  

^ مثال من ميوت المايكـ حق سعد

:D

Posted
  
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) 
  

^ مثال من ميوت المايكـ حق سعد

:D

يجي اسم النافذه ولا مايجي؟

Posted
  
    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 
) 

صححوه لي

Posted
  
    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)) 
 

صححوه لي

Posted
  
    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) 
  

صححوه لي

Posted
  
    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) 
  

صححوه لي

Posted
  
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 
) 
  

Posted
  
    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 
) 

Posted
  
    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 
) 

شوف الردود الي فوق قبل تتكلم ^^

Posted
  
    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 
) 

شوف الردود الي فوق قبل تتكلم ^^

وش يهمك !!!

Posted
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

و طلع الخطا مو هنا :|

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...