Jump to content

Help level system


[SR]mR.EmiN

Recommended Posts

i have xml record system i use pointsystem script i want level system i doesnt make pls help me look my code

function getPlayerPoints (thePlayer) 
local Points = loadPlayerData (source,"points") 
if (Points <= 0 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 1" 
elseif (Points <= 100 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 2" 
elseif (Points <=250 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 3" 
elseif (Points <= 500 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 4" 
elseif (Points <= 1000 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 5" 
elseif (Points <= 2500 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 6" 
elseif (Points <= 5000 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 7" 
elseif (Points <= 10000 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 8" 
elseif (Points <= 50000 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 9" 
elseif (Points <= 1000000 ) then 
setElementData(getLocalPlayer(), "Rank") "Level 10" 
end 
end 
  

İ know this client-side

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