#Paper Posted October 9, 2010 Posted October 9, 2010 Because the wiki don't work, what is the function to get the num of players there are in server?
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 CLICK ME local players = getElementsByType("player") local playerCount = #players
dzek (varez) Posted October 9, 2010 Posted October 9, 2010 i was not sure if there is function like that
12p Posted October 9, 2010 Posted October 9, 2010 Like me, with my "realtime" resource, I didn't know setMinuteDuration() LOL!
#Paper Posted October 9, 2010 Author Posted October 9, 2010 there is a serverside function for get players num?
12p Posted October 9, 2010 Posted October 9, 2010 varez's option is for to get players nº, client-side and server-side. My option is for to get it, only server-side. If you're going to use this info in a GUI element, then use varez's option.
50p Posted October 10, 2010 Posted October 10, 2010 Simpler: local playerCount = #getElementsByType( "player" );
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