Wisakedjak Posted May 2, 2015 Share Posted May 2, 2015 Is there a way to pick all players in the world? And is there a way to reset the game time? Or the entire game? Link to comment Share on other sites More sharing options...
Koregan Posted May 2, 2015 Share Posted May 2, 2015 To get all online players use code like this: (lists all usernames of the players online into the console)local players = getOnlinePlayers();for i=1, players:size(), 1 do print("Player "..i..": "..getOnlinePlayers():get(i):getUsername() );endI never tried to reset the gametime, So this should be answered by some other person. Link to comment Share on other sites More sharing options...
Wisakedjak Posted May 2, 2015 Author Share Posted May 2, 2015 Thanks. Btw is there an event that triggers when a player dies? Link to comment Share on other sites More sharing options...
Koregan Posted May 2, 2015 Share Posted May 2, 2015 Yes: Events.OnPlayerDeath.Add(YourFunction); but i don't knoiw right now if it is triggered on any player death or just on own death. Link to comment Share on other sites More sharing options...
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