Jump to content

طلب كود


Recommended Posts

مشكور اخي جعفر بس شوف وش المشكلة في هاي الاكواد

addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[4] then 
setWeather ( 9 ) 
outputChatBox("تم تغير الطقص الى ضباب ) 
end 
if source == GUIEditor_Button[1] then 
setWeather ( 8 ) 
outputChatBox("تم تغير الطقس الى ماطر") 
end 
if source == GUIEditor_Button[3] then 
setWeather ( 0 ) 
outputChatBox("تم تغير الطقس الى طبيعي") 
end 
if source == GUIEditor_Button[5] then 
 setWeather ( 19 ) 
outputChatBox("تم تغير الطقس الى عاصفة") 
end 
if source == GUIEditor_Button[2] then 
 setTime( 1, 0 ) 
outputChatBox("الساعة الان الواحدة") 
end 
if source == GUIEditor_Button[8] then 
setTime( 6, 0 ) 
outputChatBox("الساعة الان السادسة") 
end 
if source == GUIEditor_Button[7] then 
setTime( 12, 0 ) 
outputChatBox("الساعة الان الثانية عشر") 
end 
if source == GUIEditor_Button[6] then 
setTime( 10, 0 ) 
outputChatBox("الساعة الان السادسة عشر") 
end 
end 
) 
  
addEventHandler ( "onClientRender", root, 
    function ( ) 
        if ( guiGetVisible ( GUIEditor.window[1] ) ) then 
            guiSetText ( GUIEditor.label[21], "Your mony: " .. getPlayerMoney ( ) ) 
end 
end 
) 
  
  
  
addEventHandler("onClientGUIClick",getRootElement(), 
function() 
       if ( source == GUIEditor.button[9] ) then 
         playerNick = guiGetText(nameEdit) 
         amount = guiGetText(amountEdit) 
         triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) 
end 
end) 
 

Link to comment

addEventHandler ('onClientGUIClick', getRootElement(),function () 
    if source == GUIEditor_Button[4] then 
        setWeather ( 9 ) 
        outputChatBox('تم تغير الطقص الى ضباب' ) 
    elseif source == GUIEditor_Button[1] then 
        setWeather ( 8 ) 
        outputChatBox('تم تغير الطقس الى ماطر') 
        elseif source == GUIEditor_Button[3] then 
        setWeather ( 0 ) 
        outputChatBox('تم تغير الطقس الى طبيعي') 
    elseif source == GUIEditor_Button[5] then 
        setWeather ( 19 ) 
        outputChatBox('تم تغير الطقس الى عاصفة') 
    elseif source == GUIEditor_Button[2] then 
        setTime( 1, 0 ) 
        outputChatBox('الساعة الان الواحدة') 
    elseif source == GUIEditor_Button[8] then 
        setTime( 6, 0 ) 
        outputChatBox('الساعة الان السادسة') 
    elseif source == GUIEditor_Button[7] then 
        setTime( 12, 0 ) 
        outputChatBox('الساعة الان الثانية عشر') 
    elseif source == GUIEditor_Button[6] then 
        setTime( 10, 0 ) 
    outputChatBox('الساعة الان السادسة عشر') 
        end 
    end 
) 
  
addEventHandler ( 'onClientRender', root,function ( ) 
    if ( guiGetVisible ( GUIEditor.window[1] ) ) then 
        guiSetText ( GUIEditor.label[21], 'Your money: ' .. getPlayerMoney ( ) ) 
        end 
    end 
) 
  
  
  
addEventHandler('onClientGUIClick',getRootElement(),function() 
    if ( source == GUIEditor.button[9] ) then 
        local playerNick = guiGetText(nameEdit) 
        local amount = guiGetText(amountEdit) 
        triggerServerEvent('onSendMoney', localPlayer, playerNick, amount) 
        end 
    end 
) 
Link to comment
اخي

ركبتو بس لما اعص على الز ما يصير شي

addEventHandler ('onClientGUIClick', getRootElement(),function () 
    if source == GUIEditor_Button[4] then 
        setWeather ( 9 ) 
        outputChatBox('تم تغير الطقص الى ضباب' ) 
    elseif source == GUIEditor_Button[1] then 
        setWeather ( 8 ) 
        outputChatBox('تم تغير الطقس الى ماطر') 
        elseif source == GUIEditor_Button[3] then 
        setWeather ( 0 ) 
        outputChatBox('تم تغير الطقس الى طبيعي') 
    elseif source == GUIEditor_Button[5] then 
        setWeather ( 19 ) 
        outputChatBox('تم تغير الطقس الى عاصفة') 
    elseif source == GUIEditor_Button[2] then 
        setTime( 1, 0 ) 
        outputChatBox('الساعة الان الواحدة') 
    elseif source == GUIEditor_Button[8] then 
        setTime( 6, 0 ) 
        outputChatBox('الساعة الان السادسة') 
    elseif source == GUIEditor_Button[7] then 
        setTime( 12, 0 ) 
        outputChatBox('الساعة الان الثانية عشر') 
    elseif source == GUIEditor_Button[6] then 
        setTime( 10, 0 ) 
    outputChatBox('الساعة الان السادسة عشر') 
        end 
    end 
) 
  
addEventHandler ( 'onClientRender', root,function ( ) 
    if ( guiGetVisible ( GUIEditor.window[1] ) ) then 
        guiSetText ( GUIEditor.label[21], 'Your money: ' .. getPlayerMoney () ) 
        end 
    end 
) 
  
  
  
addEventHandler('onClientGUIClick',getRootElement(),function() 
    if ( source == GUIEditor.button[9] ) then 
        local playerNick = guiGetText(nameEdit) 
        local amount = guiGetText(amountEdit) 
        triggerServerEvent('onSendMoney', localPlayer, playerNick, amount) 
        end 
    end 
) 
Edited by Guest
Link to comment

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...