16.03.2012, 19:46
Alright but would this work to get the players name iwth the highest kills?
pawn Код:
stock GetHighestKills()
{
new player = INVALID_PLAYER_ID;
new kills;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (GetPVarInt(i, "Kills") > kills)
{
player = i;
kills = GetPVarInt(i, "Kills");
GetPlayerName(i, hk, sizeof(hk));
}
}
}
return player;
}