~>i'Mr.ZaId<~ Posted July 30, 2013 Share Posted July 30, 2013 السلام عليكم ورحمةة اللهه وبركاته يا شباب ابي ماعدتكم بكود وهو انه لما يدخل اللاعب السيرفر تطلع له النافذة بس انا لما اشغل المود تطلع انا ابيه بس للاعب الي دخل وذا الكود وياريت تصلحوه لي GUIEditor_Button = {} wnd = guiCreateWindow(295,85,622,551,"Team Panel By ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Button[1] = guiCreateButton(126,75,367,106,"Red Team",false,wnd) GUIEditor_Button[2] = guiCreateButton(126,244,367,106,"Green Team",false,wnd) GUIEditor_Button[3] = guiCreateButton(126,401,367,106,"Yellow Team",false,wnd) addEventHandler("onClientPlayerJoin",getRootElement(), function () guiSetVisible(wnd, true) showCursor(true) end ) Link to comment
فاّرس Posted July 30, 2013 Share Posted July 30, 2013 ضيف هذا guiSetVisible(wnd, false) تحت هذا , wnd = guiCreateWindow(295,85,622,551,"Team Panel By ~>i'Mr.ZaId<~",false) انتبه : This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet. Link to comment
~>i'Mr.ZaId<~ Posted July 30, 2013 Author Share Posted July 30, 2013 سويت مثل ماقلت لي ويوم اشغل المود ما تظهر اللوحة ( للحين حلو ) ض1 بس المشكلة يوم ادخل السيرفر ما تطلع لي النافذة وذا الكود GUIEditor_Button = {} wnd = guiCreateWindow(295,85,622,551,"Team Panel By ~>i'Mr.ZaId<~",false) guiSetVisible(wnd, false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Button[1] = guiCreateButton(126,75,367,106,"Red Team",false,wnd) GUIEditor_Button[2] = guiCreateButton(126,244,367,106,"Green Team",false,wnd) GUIEditor_Button[3] = guiCreateButton(126,401,367,106,"Yellow Team",false,wnd) addEventHandler("onClientPlayerJoin",getRootElement(), function () guiSetVisible(wnd, true) showCursor(true) end ) Link to comment
فاّرس Posted July 30, 2013 Share Posted July 30, 2013 (edited) الحين قولي مو اللاعب اذا دخل بيكون عنده تحميل ؟ اجل كيف بتطلع اللوحه وهو عنده تحميل ؟ يعني الحدث ماله فايده , هو بيشتغل لو خلص التحميل , onClientPlayerJoin : This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player Edited July 30, 2013 by Guest Link to comment
~>i'Mr.ZaId<~ Posted July 30, 2013 Author Share Posted July 30, 2013 بس عندي كمل التحميل ما تطلع -_-" Link to comment
فاّرس Posted July 30, 2013 Share Posted July 30, 2013 استخدم الترايقر onPlayerJoin : يعني التحميل باقي ما خلص والكلنت لازم التحميل يخلص عشان يشتغل بس عندي كمل التحميل ما تطلع -_-" شيل الحدث , GUIEditor_Button = {} wnd = guiCreateWindow(295,85,622,551,"Team Panel By ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Button[1] = guiCreateButton(126,75,367,106,"Red Team",false,wnd) GUIEditor_Button[2] = guiCreateButton(126,244,367,106,"Green Team",false,wnd) GUIEditor_Button[3] = guiCreateButton(126,401,367,106,"Yellow Team",false,wnd) كذا بتشتغل اول ما يخلص التحميل ذذ Link to comment
#DRAGON!FIRE Posted July 30, 2013 Share Posted July 30, 2013 GUIEditor_Window = {} GUIEditor_Button = {} wnd = guiCreateWindow(295,85,622,551,"Team Panel By ~>i'Mr.ZaId<~",false) guiSetVisible(wnd, false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Button[1] = guiCreateButton(126,75,367,106,"Red Team",false,wnd) GUIEditor_Button[2] = guiCreateButton(126,244,367,106,"Green Team",false,wnd) GUIEditor_Button[3] = guiCreateButton(126,401,367,106,"Yellow Team",false,wnd) addEventHandler("onClientResourceStart",getRootElement(), function () guiSetVisible(wnd, true) showCursor(true) end ) # جرب كذا Link to comment
فاّرس Posted July 30, 2013 Share Posted July 30, 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