GamerDeMTA Posted April 6, 2013 Posted April 6, 2013 Get the number of players in-game right now? in the server? Also say how to put in in an outpuChatBox please.
Mega9 Posted April 6, 2013 Posted April 6, 2013 getPlayerCount And a Wiki example: function playerCount ( ) outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) end addEventHandler ( "onPlayerJoin", getRootElement(), playerCount ) addEventHandler ( "onPlayerQuit", getRootElement(), playerCount )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now