+ Only >Supporter can use chat while dead

* Adjusted hospital spawn-rotation
+ Added regions to key-presses(preperation)
This commit is contained in:
VegaZ
2020-04-21 20:00:44 +02:00
parent f5f38d7032
commit 1297640ea6
3 changed files with 8 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ namespace ReallifeGamemode.Server.Services
public static void SendMessage(Player player, string message)
{
if (player == null) return;
if (player.GetData<bool>("isDead") == true && (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)) return;
player.SendChatMessage(message);
}