Raised This Month: $ Target: $400
 0% 

find player with most kills of a team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 05-08-2006 , 17:51  
Reply With Quote #10

My way of doing it. I don't like get_maxplayers() and is_user_connected()
Code:
stock most_kills_by_team(CsTeams:Team) {     new Players[32] , pnum , Winner[2], temp[2];     get_players(Players , pnum , "ce" , (Team == CS_TEAM_CT) ? "CT" : "TERRORIST");     for( new i = 0 ; i < pnum ; i++)     {         temp[0] = Players[i];         temp[1] = get_user_frags(temp[0]);         if(temp[1] > Winner[1])         {             Winner[0] = temp[0];             Winner[1] = temp[1];         }     }     return Winner[0]; }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
 



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