AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Make rank (https://forums.alliedmods.net/showthread.php?t=333016)

MacL 06-14-2021 06:54

Make rank
 
Hey alliedmodders, how can i make rank for players inside a plugin? (i do not mean csx rank). I want the sum of the kills to be the player score and in motd I show a list with the highest scores. how?

Bugsy 06-14-2021 07:29

Re: Make rank
 
Use a 2D array, loaded with the player id in the first slot and score value in the second slot, then use SortCustom2D()

https://forums.alliedmods.net/showpo...28&postcount=5

MacL 06-14-2021 07:55

Re: Make rank
 
Quote:

Originally Posted by Bugsy (Post 2749699)
Use a 2D array, loaded with the player id in the first slot and score value in the second slot, then use SortCustom2D()

https://forums.alliedmods.net/showpo...28&postcount=5

Thanks. it was a little hard for me but i did it... i had to put it in the requests section!


All times are GMT -4. The time now is 02:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.