29.10.2018, 18:28
PHP код:
new MaxKills;
new HighestPlayerID;
for(new i=0; i < MAX_PLAYERS; i++)
{
if (/*Player's kills*/ > MaxKills)
{
HighestPlayerID = i;
MaxKills = /*Player's Kills*/;
}
}
new string[72];
format(string, sizeof(string), "ID:%d with %d Kills", HighestPlayerID, MaxKills);
SendClientMessage(playerid, -1, string);