shwaeki Posted December 1, 2013 Share Posted December 1, 2013 بسم الله الرحمان الرحيم سويت لوحة الطقس بس ابي اخليها لما يتغيرالطقس بس يا الاعب مو يا كل السيرفر و عشين مو ضروري الواحد يتم يعمل مواضيع ابي لما اعص اغلاق تسكر بختصار ابي كود لما اعص اغلاق تسكر النافذة و يتغير الطقس بس يا الاعب الكود 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
αвυ-wαleed Posted December 1, 2013 Share Posted December 1, 2013 addEventHandler("onClientGUIClick",root, function () if ( source == اسم الزر ) then guiSetVisible(اسم النافذة او اللوحة,false) showCursor(false) guiSetInputEnabled(false) end end ) هذا الكود يخلي الزر الي تحطة يقفل اللوحة الي تحطها Link to comment
jafar Posted December 1, 2013 Share Posted December 1, 2013 اذا كان تغيير الطقس في الكلنت راح يكون للاعب فقط . Link to comment
shwaeki Posted December 1, 2013 Author Share Posted December 1, 2013 يعني الحين يتغير بس يا الاعب لانو ما عندي سيرفر اجرب على الاعبين Link to comment
αвυ-wαleed Posted December 1, 2013 Share Posted December 1, 2013 كود الطقس هو في الخادم ولا العميل ؟؟ Link to comment
shwaeki Posted December 1, 2013 Author Share Posted December 1, 2013 طيب ابي كود لما اعص اغلاق تسكر النافذة Link to comment
shwaeki Posted December 1, 2013 Author Share Posted December 1, 2013 انا مشغلة في HOST GAME Link to comment
αвυ-wαleed Posted December 1, 2013 Share Posted December 1, 2013 اعطيتك اياه addEventHandler("onClientGUIClick",root, function () if ( source == اسم الزر ) then guiSetVisible(اسم النافذة او اللوحة,false) showCursor(false) guiSetInputEnabled(false) end end ) هذا الكود يخلي الزر الي تحطة يقفل اللوحة الي تحطها Link to comment
shwaeki Posted December 1, 2013 Author Share Posted December 1, 2013 شكرا اخي زبط بس هو هيك يا لاعب واحد يعني بس يا الاعب يلي يعص الزر يتغير عندو Link to comment
αвυ-wαleed Posted December 1, 2013 Share Posted December 1, 2013 شوف اذا انت حاط الكود في server يعني يتغير للكل client للاعب لوحدة Link to comment
shwaeki Posted December 1, 2013 Author Share Posted December 1, 2013 مشكور يا ابو وليد و يا جعفر شكرااااااااااااااااا 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