More Than 9 In Checkpoint
#1

How do i check if there is 9 people in the checkpoint?
Reply
#2

something like this:
pawn Код:
SomeTimer()
{
  new count;
  for(new i = 0; i < GetMaxPlayers; i++)
  {
   if(PlayerToPoint(1, i, x, y, z )) //replace x, y, z with teh coords of teh cehckpoint
   {
     count++;
     if(count == 9)
     {
      return 1;
     }
   }
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)