Add Spectate command, Connectmsg only if isLoggedIn 1

This commit is contained in:
xSprite
2018-09-25 21:13:18 +02:00
parent fa91bf787c
commit 12bd2a19a5
3 changed files with 42 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ namespace reallife_gamemode.Server.Events
NAPI.Player.SpawnPlayer(player, Main.DEFAULT_SPAWN_POSITION, Main.DEFAULT_SPAWN_HEADING);
player.SetData("isLoggedIn", true);
player.SetData("spec", true);
player.TriggerEvent("draw");
}
}