#Paper Posted October 9, 2010 Share Posted October 9, 2010 Because the wiki don't work, what is the function to get the num of players there are in server? Link to comment
dzek (varez) Posted October 9, 2010 Share Posted October 9, 2010 CLICK ME local players = getElementsByType("player") local playerCount = #players Link to comment
12p Posted October 9, 2010 Share Posted October 9, 2010 Easier, use (server-side): getPlayerCount() Link to comment
dzek (varez) Posted October 9, 2010 Share Posted October 9, 2010 i was not sure if there is function like that Link to comment
12p Posted October 9, 2010 Share Posted October 9, 2010 Like me, with my "realtime" resource, I didn't know setMinuteDuration() LOL! Link to comment
#Paper Posted October 9, 2010 Author Share Posted October 9, 2010 there is a serverside function for get players num? Link to comment
dzek (varez) Posted October 9, 2010 Share Posted October 9, 2010 it is both client and server side.. Link to comment
12p Posted October 9, 2010 Share 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. Link to comment
50p Posted October 10, 2010 Share Posted October 10, 2010 Simpler: local playerCount = #getElementsByType( "player" ); Link to comment
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