Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- \src\char\char.cpp
- * This function parse all map-serv attached to this char-serv and increase user count
- * @return numbers of total users
- */
- int char_count_users(void)
- {
- int i, users;
- users = 0;
- for(i = 0; i < ARRAYLENGTH(map_server); i++) {
- if (map_server[i].fd > 0) {
- users += 280+map_server[i].users;
- }
- }
- return users;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement