Raised This Month: $ Target: $400
 0% 

Solved How to get first player on scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Distortion
Member
Join Date: Feb 2017
Old 04-22-2017 , 04:07   How to get first player on scoreboard
Reply With Quote #1

I know we can check every client's score by CS_GetClientContributionScore cstrike.inc
Get all client's score, sort from high to low value and get first index. That should do the trick.
What if all the players have same score... like in first round of game. They don't have score at that point.

So how can I get first player of a team, even if they don't have score. The result must be first player as you see in scoreboard.

Cheers...
__________________

Last edited by Distortion; 04-24-2017 at 06:57. Reason: Solved. Sorting by USERID
Distortion is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-22-2017 , 06:23   Re: How to get first player on scoreboard
Reply With Quote #2

I would guess it would be sorted by userid or maybe alphabetically.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
Distortion
Member
Join Date: Feb 2017
Old 04-24-2017 , 06:56   Re: How to get first player on scoreboard
Reply With Quote #3

You're right about userid.
__________________
Distortion is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 04-24-2017 , 14:43   Re: How to get first player on scoreboard
Reply With Quote #4

Can you share script code?
__________________
vortex. 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 02:11.


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