Raised This Month: $ Target: $400
 0% 

find player with most kills of a team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 05-08-2006 , 17:12  
Reply With Quote #5

i think you want it for cs:
Code:
getMostKills( CsTeams:team ) {         new maxPlayers = get_maxplayers();         new mostkills[2] = { 0, 0 }; // 0 = id, 1 = frags         for( new i = 1; i <= maxPlayers; i++ )         {                 if( !is_user_connected( i ) || cs_get_user_team( i ) != team )                         continue;                 new frags = get_user_frags( i );                 if( frags > mostkills[1] )                 {                         mostkills[1] = frags;                         mostkills[0] = i;                 }                         }         return mostkills[0];       }
I didn't tried it, so use it at you own risk

edit:
v3x why are you always so fast?
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 04:59.


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