13.01.2012, 18:11
THat aboce +
THis when you want to work it out
Then place the info where you want it
For example...
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);
}
}
For example...
pawn Код:
format(string, sizeof(string), "%s did the most damge this round" name);
SendClientMessageToAll(COLOUR, string);