[plaese Help me]How to check the most of a variable?
#8

pawn Код:
new BestKiller;
for(new i; i < MAX_PLAYERS; i ++)
{
  if(IsPlayerConnected(i) && PlayerKills[i] > BestKiller) BestKiller = i;
}
Right there you will have in the "BestKiller" variable the id of the player with the most kills.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)