Hey. I need to send a message to all players on the server, there is a difference how to do it?
Code:foreach (var Player in BasePlayer.activePlayerList){ PrintToChat(Player, Message); }Code:PrintToChat(Message);
Sending a message to all players?
Discussion in 'Rust Development' started by Bear 9, Apr 2, 2018.
-
Wulf Community Admin
Those would do the same thing.
-
Code:
BasePlayer.activePlayerList.ForEach(x => PrintToChat(x, lang.GetMessage("Key", this, x.UserIDString)));