ID:177446
![]() Sep 8 2002, 4:43 am
|
|
I know this shows lag stat("Lag",world.cpu)
|
Garthor wrote:
world.cpu has nothing to do with lag. A better solution is to keep a global list of players; this is more useful overall, because that list can be used for lots of other things, including listing the players who are logged in: var/list/players=list() The players list is useful for other commands, including admin commands, private messages, etc. Lummox JR |
Garthor wrote:
Yeah, I guess, but he just wanted a number. True, but any game worth its salt is gonna need admin commands, among other things, and ultimately the players list is going to become necessary (or at least much more useful). Having it opens lots of doors for special options in the game, but having just a number provides only a number. Lummox JR |
To show the number of people in-game...
var/Players = 0
mob/Login()
..()
Players += 1
mob/Logout()
..()
Players -= 1