Advertisement
akbare

fake player online /w

Feb 28th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /**
  2. \src\char\char.cpp
  3. * This function parse all map-serv attached to this char-serv and increase user count
  4. * @return numbers of total users
  5. */
  6. int char_count_users(void)
  7. {
  8. int i, users;
  9.  
  10. users = 0;
  11. for(i = 0; i < ARRAYLENGTH(map_server); i++) {
  12. if (map_server[i].fd > 0) {
  13. users += 280+map_server[i].users;
  14. }
  15. }
  16. return users;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement