Jump to content

تصحيح كود


Recommended Posts

السلام عليكم ورحمةة اللهه وبركاته

يا شباب ابي ماعدتكم بكود وهو

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

وذا الكود وياريت تصلحوه لي

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

ضيف هذا

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

سويت مثل ماقلت لي ويوم اشغل المود ما تظهر اللوحة ( للحين حلو ) ض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

الحين قولي مو اللاعب اذا دخل بيكون عنده تحميل ؟

اجل كيف بتطلع اللوحه وهو عنده تحميل ؟

يعني الحدث ماله فايده , هو بيشتغل لو خلص التحميل ,

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 by Guest
Link to comment
استخدم الترايقر

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

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