Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -1743,28 +1743,39 @@ namespace ReallifeGamemode.Server.Commands
|
||||
#endregion Admin
|
||||
|
||||
#region ALevel1337
|
||||
/*NUR ZUM TESTEN
|
||||
[Command("fakedeath", "~m~Benutzung:~s~ /fakedeath")]
|
||||
public void CmdAdmFakeDeath(Player player)
|
||||
/*NUR ZUM TESTEN
|
||||
[Command("fakedeath", "~m~Benutzung:~s~ /fakedeath")]
|
||||
public void CmdAdmFakeDeath(Player player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.PROJEKTLEITUNG) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
MedicTask reviveTask = new MedicTask()
|
||||
{
|
||||
Victim = player.Name,
|
||||
Position = player.Position,
|
||||
CauseOfDeath = "FAKE",
|
||||
Caller = null,
|
||||
Description = "Gestorben",
|
||||
Time = DateTime.Now,
|
||||
Type = MedicTaskType.REVIVE,
|
||||
MedicName = "none"
|
||||
};
|
||||
Medic.AddTaskToList(reviveTask);
|
||||
}*/
|
||||
|
||||
[Command("setblipcolor", "~m~Benutzung:~s~ /setblipcolor [ID]")]
|
||||
public void CmdAdmSetBlipColor(Player player, int blipId)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.PROJEKTLEITUNG) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
MedicTask reviveTask = new MedicTask()
|
||||
{
|
||||
Victim = player.Name,
|
||||
Position = player.Position,
|
||||
CauseOfDeath = "FAKE",
|
||||
Caller = null,
|
||||
Description = "Gestorben",
|
||||
Time = DateTime.Now,
|
||||
Type = MedicTaskType.REVIVE,
|
||||
MedicName = "none"
|
||||
};
|
||||
Medic.AddTaskToList(reviveTask);
|
||||
}*/
|
||||
player.SetSharedData("blipColor", blipId);
|
||||
}
|
||||
|
||||
[Command("setsvar", "~m~Benutzung:~s~ /setsvar [ID] [WERT]")]
|
||||
public void CmdAdmSetSvar(Player player, int varId, int varValue)
|
||||
|
||||
@@ -298,7 +298,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
//nameTagColor = new Color(255, 0, 0);
|
||||
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 255, 0, 0 }));
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 79);
|
||||
player.SetSharedData("blipColor", 6);
|
||||
break;
|
||||
|
||||
//FBI
|
||||
|
||||
Reference in New Issue
Block a user