NEUER LOGIN SCREEEEEEEEEEN
This commit is contained in:
@@ -261,25 +261,25 @@ namespace ReallifeGamemode.Server.Commands
|
||||
player.SetData("SAdminduty", false);
|
||||
ChatService.SendMessage(player, "!{#ee4d2e}** " + "Du befindest dich nicht mehr im T-Support");
|
||||
}
|
||||
using (var dbContext = new DatabaseContext())
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
User targetUser = player.GetUser(dbContext);
|
||||
switch (targetUser.FactionId)
|
||||
{
|
||||
User targetUser = player.GetUser(dbContext);
|
||||
switch (targetUser.FactionId)
|
||||
{
|
||||
case null:
|
||||
player.SetSharedData("blipColor", 0);
|
||||
break;
|
||||
case 8:
|
||||
player.SetSharedData("blipColor", 83);
|
||||
break;
|
||||
case 7:
|
||||
player.SetSharedData("blipColor", 52);
|
||||
break;
|
||||
case 4:
|
||||
player.SetSharedData("blipColor", 5);
|
||||
break;
|
||||
}
|
||||
case null:
|
||||
player.SetSharedData("blipColor", 0);
|
||||
break;
|
||||
case 8:
|
||||
player.SetSharedData("blipColor", 83);
|
||||
break;
|
||||
case 7:
|
||||
player.SetSharedData("blipColor", 52);
|
||||
break;
|
||||
case 4:
|
||||
player.SetSharedData("blipColor", 5);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
[Command("aduty", "~m~Benutzung: ~s~/aduty")]
|
||||
public void CmdAduty(Player player)
|
||||
@@ -896,22 +896,22 @@ namespace ReallifeGamemode.Server.Commands
|
||||
switch (Skill.ToLower())
|
||||
{
|
||||
case "bus":
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser(dbContext).BusSkill = SkillLevel;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser(dbContext).BusSkill = SkillLevel;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "pilot":
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser(dbContext).PilotSkill = SkillLevel;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
}
|
||||
case "pilot":
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser(dbContext).PilotSkill = SkillLevel;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
ChatService.SendMessage(player, $"~w~Du hast den ~y~{Skill}-Skill ~w~von ~y~{target.Name} ~w~auf ~g~{SkillLevel} ~w~gesetzt.");
|
||||
@@ -2691,7 +2691,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
}
|
||||
}
|
||||
[Command("aplaysound", "~m~Benutzung: ~s~/aplaysound [Dateiname] [mp3/wav] [volume 0.0 - 100.0]", Alias ="aps")]
|
||||
[Command("aplaysound", "~m~Benutzung: ~s~/aplaysound [Dateiname] [mp3/wav] [volume 0.0 - 100.0]", Alias = "aps")]
|
||||
public void CmdAdminPlaySound(Player player, string sound, string typ, double volume = 100)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
@@ -2701,7 +2701,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
player.TriggerEvent("CLIENT:PlaySound", sound, typ, volume);
|
||||
}
|
||||
[Command("astopsound", "~m~Benutzung: ~s~/astopsound", Alias="ass")]
|
||||
[Command("astopsound", "~m~Benutzung: ~s~/astopsound", Alias = "ass")]
|
||||
public void CmdAdminStopSound(Player player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
|
||||
Reference in New Issue
Block a user