Fix login message
This commit is contained in:
@@ -28,13 +28,9 @@ namespace reallife_gamemode.Server.Events
|
|||||||
player.FreezePosition = true;
|
player.FreezePosition = true;
|
||||||
string name = player.Name;
|
string name = player.Name;
|
||||||
List<Client> playerlist = NAPI.Pools.GetAllPlayers();
|
List<Client> playerlist = NAPI.Pools.GetAllPlayers();
|
||||||
foreach (Client currentPlayer in playerlist)
|
|
||||||
{
|
string msg = "~m~*** " + player.Name + "[" + player.SocialClubName + "] [ID:" + player.Handle.Value + "] (" + player.Address + ")";
|
||||||
if (currentPlayer.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? false)
|
ChatService.BroadcastAdmin(msg, AdminLevel.ADMIN);
|
||||||
{
|
|
||||||
player.SendChatMessage("~m~*** "+player.Name+"["+player.SocialClubName+"] [ID:"+player.Handle.Value+"] ("+player.Address+")");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[RemoteEvent("IsPlayerBanned")]
|
[RemoteEvent("IsPlayerBanned")]
|
||||||
|
|||||||
Reference in New Issue
Block a user