Forum

> > CS2D > Scripts > New Leaderboard
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch New Leaderboard

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt New Leaderboard

Ranu
User Off Offline

Zitieren
Hello, Can anyone make a new custom leaderboard for me which will sort by players (kills/deaths/assists/kpd)
Thanks

alt Re: New Leaderboard

Ranu
User Off Offline

Zitieren
@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.

alt Re: New Leaderboard

Mami Tomoe
User Off Offline

Zitieren
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.
1× editiert, zuletzt 09.07.19 19:43:20

alt Re: New Leaderboard

DC
Admin Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht