Getting The Player With The Highest Kills?
#2

Код:
stock GetWinner()
{
	new bestkills = 0;
	new id = INVALID_PLAYER_ID;
	for(new i = 0; i < GetMaxPlayers(); i++)
	{
		if(Kills[i] > bestkills) {
			bestkills = Kills[i];
			id = i;
		}
	}
	return id;
}
Reply


Messages In This Thread
Getting The Player With The Highest Kills? - by GTA967 - 08.09.2009, 21:17
Re: Getting The Player With The Highest Kills? - by Jefff - 08.09.2009, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)