[Command("namecommand")]
public static void CMD_setAdminPlayer(Player player)
{
try
{
if (player == null || !Main.Players.ContainsKey(player) || Main.Players[player].AdminLVL >= 1) return;
Main.Players[player].AdminLVL = 1;
player.SetSharedData("IS_ADMIN", true);
player.SetSharedData("ALVL", 1);
GangsCapture.LoadBlips(player);
Notify.Send(player, NotifyType.Info, NotifyPosition.BottomCenter, $"Вы выдали себе админ. права", 3000);
}
catch (Exception e) { Log.Write("CMD_setAdminPlayer: " + e.ToString(), nLog.Type.Error); }
}