How To Do This
#3

THat aboce +
THis when you want to work it out

pawn Код:
new stat;
new name[MAX_PLAYER_NAME];
for(new i = 0; i<MAX_PLAYERS; i++)
{
     if(stat<PlayerTotalDamageGiven[i])
     {
         stat = PlayerTotalDamageGiven[i];
         GetPlayerName(i, name, MAX_PLAYER_NAME);
       }
}
Then place the info where you want it

For example...

pawn Код:
format(string, sizeof(string), "%s did the most damge this round" name);
 SendClientMessageToAll(COLOUR, string);
Reply


Messages In This Thread
How To Do This - by (_AcE_) - 13.01.2012, 17:06
Re: How To Do This - by Kaperstone - 13.01.2012, 18:01
Re: How To Do This - by IceCube! - 13.01.2012, 18:11
Re: How To Do This - by (_AcE_) - 13.01.2012, 18:53

Forum Jump:


Users browsing this thread: 2 Guest(s)