23.08.2010, 01:45
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;
}