How to find out the first player in score tab?
Hello, I wanted to ask how I am supposed to find out first player in the score tab? 'Cause I am making Improved Team Transfer. I want to find first player with the most score in the tab and replace him with the last one in the other team.
|
Re: How to find out the first player in score tab?
Use get_players and then loop through all the players to find out which one has the highest get_user_frags. If two or more players are tied used cs_get_user_deaths as a tie-breaker.
Also bear in mind that the first player on the scoreboard isn't always the best one, a guy with 40 kills and 40 deaths will be 1st and a guy with 38 kills and 2 deaths will be 2nd. |
Re: How to find out the first player in score tab?
You gotta use get_players twice for both two teams.
|
Re: How to find out the first player in score tab?
Quote:
|
Re: How to find out the first player in score tab?
get_players + SortCustom1D
You can search for examples, there are many. |
Re: How to find out the first player in score tab?
Quote:
Still don't understand after some checking.. someone help. |
Re: How to find out the first player in score tab?
Try to do it and post the code that you wrote so far. This is the scripting section, so provide your script.
|
Re: How to find out the first player in score tab?
Quote:
PHP Code:
|
Re: How to find out the first player in score tab?
Quote:
|
Re: How to find out the first player in score tab?
Quote:
|
| All times are GMT -4. The time now is 12:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.