Detecting who has the most kills
#5

Do it outside the function.
pawn Код:
new bestkiller = GetHighestKills();

if (bestkiller != INVALID_PLAYER_ID)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(bestkiller, name, sizeof(name));
    // name now contains the players name
}
Reply


Messages In This Thread
Detecting who has the most kills - by new121 - 16.03.2012, 18:30
Re: Detecting who has the most kills - by Psymetrix - 16.03.2012, 19:34
Re: Detecting who has the most kills - by new121 - 16.03.2012, 19:46
Re: Detecting who has the most kills - by coole210 - 16.03.2012, 19:47
Re: Detecting who has the most kills - by Psymetrix - 16.03.2012, 19:49
Re: Detecting who has the most kills - by new121 - 16.03.2012, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)