/top10 of players.
#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


Messages In This Thread
/top10 of players. - by budelis - 21.08.2011, 17:32
Re: /top10 of players. - by Davz*|*Criss - 21.08.2011, 17:51
Re: /top10 of players. - by Bakr - 21.08.2011, 18:10
Re: /top10 of players. - by budelis - 21.08.2011, 18:47
Re: /top10 of players. - by budelis - 23.08.2011, 16:39
Re: /top10 of players. - by =WoR=Varth - 24.08.2011, 07:11

Forum Jump:


Users browsing this thread: 5 Guest(s)