Пример #1
0
 /// <summary>
 /// Kicks the player from the game
 /// </summary>
 /// <param name="reason"></param>
 public void Kick(string reason)
 {
     Rust.Notice.Popup(netUser.networkPlayer, "", reason, 10f);
     NetCull.CloseConnection(netUser.networkPlayer, false);
 }
Пример #2
0
 /// <summary>
 /// Kicks this player from the game
 /// </summary>
 /// <param name="reason"></param>
 public void Kick(string reason)
 {
     ServerManagement.Get().networkView.RPC("KP", netUser.networkPlayer, reason);
     NetCull.CloseConnection(netUser.networkPlayer, true);
 }