Как использовать команды по Статику? В редаге допустим есть команда
public static void setPlayerAdminGroup(Player player, Player target)
{
int playeіr = Main.Players[player].UUID;
if (!Group.CanUseCmd(player, "setadmin")) return;
if (Main.Players[player].AdminLVL >= 1)
{
Notify.Send(player, NotifyType.Error, NotifyPosition.BottomCenter, $"У игрока уже есть админ. прав", 3000);
return;
}
Main.Players[player].AdminLVL = 1;
player. SetSharedData("IS_ADMIN", true);
player.SetSharedData("ALVL", 1);
Fractions.GangsCapture.LoadBlips(player);
Notify.Send(player, NotifyType.Info, NotifyPosition.BottomCenter, $"Вы Выдали админ. права игроку {player.Name}", 3000);
Notify.Send(player, NotifyType.Info, NotifyPosition.BottomCenter, $"Вам выдали статус ADMIN", 3000);
GameLog.Admin($"{player.Name}", $"setAdmin", $"{player.Name}");
}
Что мне здесь нужно сменить или добавить прошу помощь
public static void setPlayerAdminGroup(Player player, Player target)
{
int playeіr = Main.Players[player].UUID;
if (!Group.CanUseCmd(player, "setadmin")) return;
if (Main.Players[player].AdminLVL >= 1)
{
Notify.Send(player, NotifyType.Error, NotifyPosition.BottomCenter, $"У игрока уже есть админ. прав", 3000);
return;
}
Main.Players[player].AdminLVL = 1;
player. SetSharedData("IS_ADMIN", true);
player.SetSharedData("ALVL", 1);
Fractions.GangsCapture.LoadBlips(player);
Notify.Send(player, NotifyType.Info, NotifyPosition.BottomCenter, $"Вы Выдали админ. права игроку {player.Name}", 3000);
Notify.Send(player, NotifyType.Info, NotifyPosition.BottomCenter, $"Вам выдали статус ADMIN", 3000);
GameLog.Admin($"{player.Name}", $"setAdmin", $"{player.Name}");
}
Что мне здесь нужно сменить или добавить прошу помощь