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

@@ -32,10 +32,13 @@ namespace reallife_gamemode.Server.Events
{
if (currentPlayer.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? false)
{
player.SendChatMessage("~m~*** "+player.Name+"["+player.SocialClubName+"] [ID:"+player.Handle.Value+"] ("+player.Address+")");
if (player.GetData("isLoggedIn"))
{
player.SendChatMessage("~m~*** "+player.Name+"["+player.SocialClubName+"] [ID:"+player.Handle.Value+"] ("+player.Address+")");
}
}
}
}
}
}
}