AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get the best player of the map (https://forums.alliedmods.net/showthread.php?t=128222)

rapara13 05-30-2010 04:54

How to get the best player of the map
 
How i can get the best player of the map with most frags

abdul-rehman 05-30-2010 06:45

Re: How to get the best player of the map
 
Quote:

Originally Posted by rapara13 (Post 1195018)
How i can get the best player of the map with most frags

Loop throw every one on before map change and compare there frags..:)

wrecked_ 05-30-2010 10:49

Re: How to get the best player of the map
 
Code:
GetTopPlayer() {     new iPlayers[32]     new iNum         get_players( iPlayers, iNum )         new id         new top     new topfrags         new iFrags         for( new i = 0; i < iNum; i++ )     {         id = iPlayers[i]         iFrags = get_user_frags( id )                 if( iFrags > topfrags )         {             top = id             topfrags = iFrags         }     }         return top; }


All times are GMT -4. The time now is 05:23.

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