Raised This Month: $51 Target: $400
 12% 

Make rank


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MacL
Member
Join Date: May 2021
Old 06-14-2021 , 06:54   Make rank
Reply With Quote #1

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?

Last edited by MacL; 06-14-2021 at 11:04.
MacL is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-14-2021 , 07:29   Re: Make rank
Reply With Quote #2

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
__________________
Bugsy is offline
MacL
Member
Join Date: May 2021
Old 06-14-2021 , 07:55   Re: Make rank
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
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!

Last edited by MacL; 06-14-2021 at 11:03.
MacL is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:16.


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