Jump to content

لما اللاعب يدخل السيرفر تفتح لوحة Gui


Recommended Posts

اول ما يخش اللاعب السيرفر يحمل المودات و بعدها تشتغل المودات و اول ما تسوي اللوحة تكون مفتوحه

ما اشوف معنى لموضوعك .__.

Link to comment

-- كلنت

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 by Guest
Link to comment

-- كلنت

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

! فايدة / مثلاً واحد سوء ريستارت للسكربت ماتطلع له لوحة ، بس اذا دخل

ويضيف /

guiSetVisible ( NameWindow[1] ,false ) 

مع الكود , وأتوقع كودي هو الي يطلبه صاحب الموضوع

Link to comment
! فايدة / مثلاً واحد سوء ريستارت للسكربت ماتطلع له لوحة ، بس اذا دخل

ويضيف /

guiSetVisible ( NameWindow[1] ,false ) 

مع الكود , وأتوقع كودي هو الي يطلبه صاحب الموضوع

اعمل داتا يوم تفتح اول مره

تعطيه و يوم يخرج تمسحه و يوم تعمل رست تتحقق من داتا لو موجده بعدين تطلع لوحه

:lol::lol:

كبرتها و هي ما تحتاج كل يلي يحتااجه سطر

Link to comment
  
addEventHandler("onClientResourceStart",resourceRoot, function (  ) -- وظيفة و حدث يوم يخلص تحميل او يشتغل المود 
guiSetVisible(GUIEditor.MainScreen,true) -- نظهر النافذه 
showCursor(true) -- اظهار المؤشر 
end) 
  

Link to comment

^^

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

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