English New Leaderboard

4 replies
Goto Page
To the start Previous 1 Next To the start
08.07.19 11:42:47 pm
Up
Ranw-X
User
Offline Off
Hello, Can anyone make a new custom leaderboard for me which will sort by players (kills/deaths/assists/kpd)
Thanks
VTA Community Discord: https://discord.gg/6rHKWvJ
09.07.19 02:00:17 am
Up
haha1955
User
Offline Off
@user Ranw-X: i thought you are a scripter??? why u ask other scripter for create you a leaderboard script?
09.07.19 10:14:43 am
Up
Ranw-X
User
Offline Off
@user haha1955: I have no idea for this, I know how to make a new leaderboard but only sort by kills, not (kills, deaths, assists, kpd). Also it doesn't mean scripters can't ask others for help.
VTA Community Discord: https://discord.gg/6rHKWvJ
09.07.19 10:23:11 am
Up
Just create a formula such as:

Score = ((kills * 3) + (assists * 2)) - deaths

And sort by score.


Unless you mean you want multiple sorting types in which case you'd need to store them in a table and use
table.sort
with a custom function.
edited 1×, last 09.07.19 07:43:20 pm
09.07.19 07:35:38 pm
Up
DC
Admin
Offline Off
Isn't the built-in scoreboard (tab) sorted basically like that? What's the problem with it?

Also writing a custom scoreboard in Lua wouldn't be very efficient because it's a ton of values which need to be displayed and transferred to all clients.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start