mouamle Posted April 24, 2015 Share Posted April 24, 2015 ألسلام عليكم طلب بسيط لما اللاعب يدخل السيرفر ابي تفتحلة لوحة Gui أسمها GUIEditor.MainScreen وشكرا Link to comment
</Mr.Tn6eL> Posted April 24, 2015 Share Posted April 24, 2015 (edited) guiSetVisible اذ كنت مقفلها افتحها Edited April 24, 2015 by Guest Link to comment
TAPL Posted April 24, 2015 Share Posted April 24, 2015 اول ما يخش اللاعب السيرفر يحمل المودات و بعدها تشتغل المودات و اول ما تسوي اللوحة تكون مفتوحه ما اشوف معنى لموضوعك .__. Link to comment
i S6O Posted April 25, 2015 Share Posted April 25, 2015 (edited) -- كلنت function ShowWindow1 ( ) guiSetVisible ( GUIEditor.MainScreen,true ) showCursor ( true ) end addEvent( "onJoin", true ) addEventHandler( "onJoin", localPlayer, ShowWindow1 ) -- سيرفر function ShowWindow1 ( ) triggerClientEvent ( source, "onJoin", source ) end addEventHandler("onPlayerJoin",root,ShowWindow1) شغال / تمت التجربة Edited April 25, 2015 by Guest Link to comment
yazan Posted April 25, 2015 Share Posted April 25, 2015 -- كلنت function ShowWindow1 ( ) guiSetVisible ( NameWindow[1],true ) showCursor ( true ) end addEvent( "onJoin", true ) addEventHandler( "onJoin", localPlayer, ShowWindow1 ) -- سيرفر function ShowWindow1 ( ) triggerClientEvent ( source, "onJoin", source ) end addEventHandler("onPlayerJoin",root,ShowWindow1) شغال / تمت التجربة أيفنت غلط كودك ما له داعي حط تحت النافذه guiSetVisible ( NameWindow[1],true ) فقط Link to comment
i S6O Posted April 25, 2015 Share Posted April 25, 2015 ! فايدة / مثلاً واحد سوء ريستارت للسكربت ماتطلع له لوحة ، بس اذا دخل ويضيف / guiSetVisible ( NameWindow[1] ,false ) مع الكود , وأتوقع كودي هو الي يطلبه صاحب الموضوع Link to comment
TAPL Posted April 25, 2015 Share Posted April 25, 2015 ^ ما رح يشتغل التريقر لان الكلينت يشتغل متأخر Link to comment
yazan Posted April 25, 2015 Share Posted April 25, 2015 ! فايدة / مثلاً واحد سوء ريستارت للسكربت ماتطلع له لوحة ، بس اذا دخلويضيف / guiSetVisible ( NameWindow[1] ,false ) مع الكود , وأتوقع كودي هو الي يطلبه صاحب الموضوع اعمل داتا يوم تفتح اول مره تعطيه و يوم يخرج تمسحه و يوم تعمل رست تتحقق من داتا لو موجده بعدين تطلع لوحه كبرتها و هي ما تحتاج كل يلي يحتااجه سطر Link to comment
</Mr.Tn6eL> Posted April 25, 2015 Share Posted April 25, 2015 ماتحتاج قضية هي مفتوحة اول اول الاعب مايخلص تحميلة تشتغل لكن هو يستخدم guiSetVisible Link to comment
i S6O Posted April 25, 2015 Share Posted April 25, 2015 ي رجل ماعندي خبره كثير ، بس أتعلم من اخطائي Link to comment
' A F . Posted April 26, 2015 Share Posted April 26, 2015 addEventHandler("onClientResourceStart",resourceRoot, function ( ) -- وظيفة و حدث يوم يخلص تحميل او يشتغل المود guiSetVisible(GUIEditor.MainScreen,true) -- نظهر النافذه showCursor(true) -- اظهار المؤشر end) Link to comment
Mr.R Posted April 26, 2015 Share Posted April 26, 2015 تقدر بعد تستخدم Event : "onClientPlayerJoin" احسن ^^ Link to comment
TAPL Posted April 26, 2015 Share Posted April 26, 2015 ^^ 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
yazan Posted April 26, 2015 Share Posted April 26, 2015 تقدر بعد تستخدم Event : "onClientPlayerJoin" احسن ^^ رد ما له داعي + غلط Link to comment
Mr.R Posted April 26, 2015 Share Posted April 26, 2015 ^ اعصابك يالحبيب ذذ طيب يستخدم Event : "onClientResourceStart" لانه كذا ولا كذا بتطلع اللوحه اول مايشغل المود واول مايدخلون السيرفر للكل فهمت الطريقه شكراً 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