/top10 of players.
#1

Hi all.Maybe somebody can create top10,not for connected players,but for all players who register for ex:in my server had register 50 players,there is top players:

Code:
1.Player1 - 10000 XP
2.Player2 - 9000 XP
3.Player3 - 8000 XP
4.Player4 - 7000 XP
5.Player5 - 6000 XP
6.Player6 - 5000 XP
7.Player7 - 4000 XP
8.Player8 - 3000 XP
9.Player9 - 2000 XP
10.Player10 - 1000 XP
And it's possible to get my position in the top for ex:

Code:
"Your position in the top is 45 with 50 XP"
Reply
#2

Many threads like this!

Use search in ****** and you will get it.
Reply
#3

Rather simple, really. Make a 10 cell variable to store the top xp values. When a player disconnects from the server, and if their xp is greater than one of the values in the array, adjust it accordingly, otherwise, leave it as is. When the server exits, save the values from the variable into a file. When the server starts, load them into the variable.

That's assuming you're using a file system to store the values. If you're using SQL, simply run a query to select all xp fields and use the ORDER BY statement.
Reply
#4

No.I use dini.Maybe you can start how i have do this?
Reply
#5

any help?
Reply
#6

IDK if this help you.
http://pastebin.com/MGVrXfwa
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)