addEventHandler("onPlayerLogin",getRootElement(),
function (_, currentaccount)
local name = getAccountName(currentaccount)
triggerClientEvent (source, "accountname", source,name)
end
)
Label3 = guiCreateLabel(79, 25, 182, 23, "HI !", false, Account)
-------------------------------------
addEvent ("accountname", true)
addEventHandler ("accountname", root, function (name)
guiSetText (Label3, "User : ".. name)
end)
ما جربته بس الكود يشتغل لما الاعب يسجل دخوله باقي تستخدم حدث onResourceStart