window = guiCreateWindow ( 0, 0, 0.5, 0.4, "", true )
button= guiCreateButton(698, 550, 96, 33, "", false, window)
button2 = guiCreateButton(597, 550, 96, 33, "", false, window)
label = guiCreateEdit(622, 488, 172, 26, "", false, window)
label2 = guiCreateEdit(622, 514, 172, 26, "", false, window)
showCursor ( guiGetVisible(window) )
كذا اصلا اول مايدخل اللاعب تفتح اللوحة تلقائيا ,, بس اذا سويت ريستارت هم بتشتغل
بس اذا تبغيها مثل طريقتك ,,
window = guiCreateWindow ( 0, 0, 0.5, 0.4, "", true )
button= guiCreateButton(698, 550, 96, 33, "", false, window)
button2 = guiCreateButton(597, 550, 96, 33, "", false, window)
label = guiCreateEdit(622, 488, 172, 26, "", false, window)
label2 = guiCreateEdit(622, 514, 172, 26, "", false, window)
guiSetVisible(window,false)
showCursor ( guiGetVisible(window) )
function playerenter ()
guiSetVisible(window, not guiGetVisible(window) )
showCursor ( guiGetVisible(window) )
end
addEventHandler("onPlayerJoin" , root, playerenter)