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

will it work like this ? to use it as a timer ..
pawn Код:
forward High();
public High()
{
    new highestid = INVALID_PLAYER_ID, highest = -1;
    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(GetPlayerScore(i) > highest)
        {
            highestid = i;
            highest = GetPlayerScore(i);
        }
    }
    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        if(highestid != INVALID_PLAYER_ID)
        {
            team[i] = 3;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)