Advertisement
skroton

client count from commonFuncs.h

Jun 1st, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. function int ClientCount(void)
  2. {
  3.     int ret, i;
  4.  
  5.     for (i = 0; i < PLAYERMAX; i++)
  6.     {
  7.         if (PlayerInGame(i) || PlayerIsSpectator(i)) { ret++; }
  8.     }
  9.  
  10.     return ret;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement