[SR]mR.EmiN Posted February 1, 2011 Share Posted February 1, 2011 function getPointRank(points) local rank = "No Rank" if points => 10000 then rank = "Super Mega Rank with 10000 or more points" elseif points => 2000 then rank = "Super Rank with 2000-9999 points" elseif points => 1000 then rank = "Rank with 1000-1999 points" elseif points => 500 then rank = "Second Rank with 500-999 points" elseif points => 0 then rank = "First Rank with 0-499 points" end return rank end how can i make rank system i use pointsystem data system xml pls helpme Link to comment
proracer Posted February 1, 2011 Share Posted February 1, 2011 I just dont understand this. Link to comment
pocko Posted February 3, 2011 Share Posted February 3, 2011 I too can we see the system where you use ? Link to comment
12p Posted February 4, 2011 Share Posted February 4, 2011 (edited) 1. Your code is wrong. Right one: function getPointRank ( points ) local rank = "No Rank" if points >= 10000 then rank = "Super Mega Rank with 10000 or more points" elseif points >= 2000 then rank = "Super Rank with 2000-9999 points" elseif points >= 1000 then rank = "Rank with 1000-1999 points" elseif points >= 500 then rank = "Second Rank with 500-999 points" elseif points >= 0 then rank = "First Rank with 0-499 points" end return rank end 2. Explain better what do you mean! Use http://www.ajaxtrans.com, that translator beats all others. Edited February 5, 2011 by Guest Link to comment
[SR]mR.EmiN Posted February 4, 2011 Author Share Posted February 4, 2011 if (string.find(message,"!stats")) and not (string.find(message," !stats")) then local playerCash = loadPlayerData (source,"cash") local playerPoints = loadPlayerData (source,"points") local playerRank = getElementData (source,"Rank") setTimer(outputChatBox,50,1,getPlayerName (source) .. " #ffd700has " .. tostring(playerCash) .. "$ and " .. tostring(playerPoints) .. " points! He is Rank " .. tostring(playerRank) .. "!",getRootElement(),255,0,0,true) true ur code working, how do i rank command?? Link to comment
Castillo Posted February 4, 2011 Share Posted February 4, 2011 (edited) Do you think you can just post a non-finished script, and ask like that to get it done by someone else? Edited February 5, 2011 by Guest Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now