طيب هذا هو اول ما يجيب لفل
ٍسيرفر
if getPlayerAccount(plr) and not isGuestAccount(getPlayerAccount(plr)) then
setAccountData (getPlayerAccount(plr),"Level",v[1])
setAccountData (getPlayerAccount(plr),"exp",0)
setAccountData (getPlayerAccount(plr),"nexp",v[2])
triggerClientEvent("levelup",plr)
ومسوي ترايقر للكلنت وابي الرسالة تجيله لمدة 3 ثواني وتختفي
كلنت
addEvent("levelup",true)
addEventHandler("levelup",localPlayer,
function()
playSound ("Levelup.mp3")
exports["TopBarChat"]:sendClientMessage ("#FF0000*#FFFF00Congratulations Your Level is up ",255, 50, 0,true,5)
end)
وهذي الدي اكس
addEventHandler("onClientRender", root,
function()
dxDrawText("*Your Level is UP", 258 - 1, 336 - 1, 774 - 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
dxDrawText("*Your Level is UP", 258 + 1, 336 - 1, 774 + 1, 412 - 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
dxDrawText("*Your Level is UP", 258 - 1, 336 + 1, 774 - 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
dxDrawText("*Your Level is UP", 258 + 1, 336 + 1, 774 + 1, 412 + 1, tocolor(0, 0, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
dxDrawText("*Your Level is UP", 258, 336, 774, 412, tocolor(255, 255, 0, 255), 5.00, "default-bold", "left", "top", false, false, false, true, false)
end
)