Jump to content

X[مساعدة]X في مود اللفل


Recommended Posts

ابي الواحد اذا جاب لفل يجي في الجيو ميسيج رسالة لكل اللاعبين ويجي اسم اللاعب وكم صار لفله
محاولتي
 

function checkLevel(plr,Level)
c=0
for i,k in ipairs (lev) do
c=c+1
if tonumber(getElementData (plr,"Level")) == k[1] and tonumber(getElementData (plr,"exp")) >= k[2] then
for o,v in next,lev,c do
setElementData (plr,"Level",v[1])
setElementData (plr,"exp",0)
setElementData (plr,"nexp",v[2])
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)
exports["guimessages"]:outputServer ( root,"*Congratulations for [" ..plr.. "] his level up to : [" ..Level.. "]", 255, 255, 0,true)
local x, y, z = getElementPosition ( plr )
createExplosion ( x, y + 5, z , 7, plr )
createExplosion ( x, y + 20, z , 8, plr )
createExplosion ( x, y + 10, z , 9, plr )
createExplosion ( x, y + 15, z , 10, plr )
createExplosion ( x + 10, y, z , 11, plr )
createExplosion ( x, y + 18, z , 12, plr )
setElementHealth(plr, 200)
setPedArmor(plr, 100)
end
break
end
end
end
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...