Jump to content

طلب كودين


shwaeki

Recommended Posts

بسم الله الرحمان الرحيم

سويت لوحة الطقس بس ابي اخليها لما يتغيرالطقس بس يا الاعب مو يا كل السيرفر

و عشين مو ضروري الواحد يتم يعمل مواضيع

ابي لما اعص اغلاق تسكر

بختصار

ابي كود لما اعص اغلاق تسكر النافذة

و يتغير الطقس بس يا الاعب

الكود

GUIEditor_Window = {} 
GUIEditor_Button = {} 
  
GUIEditor_Window[1] = guiCreateWindow(784,322,309,253,"<<<الطقس>>>",false) 
GUIEditor_Button[1] = guiCreateButton(9,26,121,64,"ضباب",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(169,26,121,64,"ماطر",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(169,131,121,64,"طبيعي",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(9,133,121,64,"عاصفة",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(108,213,89,31,"اغلاق",false,GUIEditor_Window[1]) 
--------------------------------------------------- 
guiSetVisible(GUIEditor_Window[1],false) 
bindKey ( "F7" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 end 
 end 
 ) 
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == GUIEditor_Button[1] then 
setWeather ( 9 ) 
outputChatBox("تم تغير الطقس الى ضباب") 
end 
if source == GUIEditor_Button[2] then 
setWeather ( 8 ) 
outputChatBox("تم تغير الطقس الى ماطر") 
end 
if source == GUIEditor_Button[3] then 
setWeather ( 0 ) 
outputChatBox("تم تغير الطقس الى طبيعي") 
end 
if source == GUIEditor_Button[4] then 
setWeather ( 19 ) 
outputChatBox("تم تغير الطقس الى عاصفة") 
end 
 end 
) 
  
  
guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF00FF00") 
guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FF00FF00") 
guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FF00FF00") 
  
  

Link to comment
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == اسم الزر ) then 
            guiSetVisible(اسم النافذة او اللوحة,false) 
            showCursor(false) 
            guiSetInputEnabled(false) 
  
  
        end 
    end 
) 

هذا الكود يخلي الزر الي تحطة يقفل اللوحة الي تحطها

Link to comment

اعطيتك اياه

  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == اسم الزر ) then 
            guiSetVisible(اسم النافذة او اللوحة,false) 
            showCursor(false) 
            guiSetInputEnabled(false) 
  
  
        end 
    end 
) 

هذا الكود يخلي الزر الي تحطة يقفل اللوحة الي تحطها

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