New Leaderboard
4 replies



08.07.19 11:42:47 pm
Hello, Can anyone make a new custom leaderboard for me which will sort by players (kills/deaths/assists/kpd)
Thanks
Thanks

VTA Community Discord: https://discord.gg/6rHKWvJ
@
Ranw-X: i thought you are a scripter??? why u ask other scripter for create you a leaderboard script?

@
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
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
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
Is death truly a bad thing? If it is, then why do we all get to experience it? And... Why does it take so long? - What is the meaning of death?
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.
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.



