Вот код помогите, выдает ошибку на if admin lvl
C#:
[Command("alogin13")]
public static void CMD_alogin13(Player player, int id, int draw, int texture)
{
try
{
if (!Main.Players.ContainsKey(player)) return;
if (!Group.CanUseCmd(player, "alogin13")) return;
player.SetClothes(id, draw, texture);
if (id == 11) player.SetClothes(3, Customization.CorrectTorso[Main.Players[player].Gender][draw], 0);
if (id == 1) Customization.SetMask(player, draw, texture);
player.SetClothes(11, 400, 0);
if (adminlvl = 1) player.SetClothes(6, 142, 16);
if (adminlvl = 2) player.SetClothes(6, 142, 17);
}
catch { }
}