Raised This Month: $ Target: $400
 0% 

Leader


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Econy
Junior Member
Join Date: Jun 2007
Old 10-10-2009 , 05:59   Leader
Reply With Quote #1

how do i get the player with most frags?
Econy is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 10-10-2009 , 06:05   Re: Leader
Reply With Quote #2

PHP Code:
new iMaxPlayers get_maxplayers( );
new 
iFragsiPlayeriCurTop = -999;

for( new 
id 1id <= iMaxPlayersid++ )
{
   if( 
is_user_connectedid ) )
   {
      
iFrags get_user_fragsid );
      if( 
iFrags iCurTop )
      {
         
iPlayer id,
         
iCurTop iFrags;
      }
   }
}

// iPlayer is 'leading' with iCurTop frags. 
__________________
In Flames we trust!
Nextra is offline
Reply


Thread Tools
Display Modes

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 22:38.


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