how to get the highest score in the server?
#2

pawn Код:
new highestid = INVALID_PLAYER_ID, highest = -1;
for(new i = 0; i < MAX_PLAYERS; ++i)
{
    if(GetPlayerScore(i) > highest)
    {
        highestid = i;
        highest = GetPlayerScore(i);
    }
}
if(highestid != INVALID_PLAYER_ID)
{
    //your function...
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)