Start Medic System / FactionInteraction

This commit is contained in:
VegaZ
2018-12-27 22:21:59 +01:00
parent 4ea09f0034
commit 5c84dc177d
10 changed files with 210 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ using GTANetworkAPI;
using GTANetworkMethods;
using reallife_gamemode.Model;
using reallife_gamemode.Server.Extensions;
using reallife_gamemode.Server.Factions.Medic;
using reallife_gamemode.Server.Services;
using reallife_gamemode.Server.Util;
@@ -76,6 +77,20 @@ namespace reallife_gamemode.Server.Events
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
}
}
//MEDIC AUFTRAG
MedicTask reviveTask = new MedicTask()
{
Victim = player,
Position = player.Position,
CauseOfDeath = reason.ToString(),
Caller = player,
Description = "Gestorben",
Time = DateTime.Now,
Type = 0
};
Medic.AddTaskToList(reviveTask);
//TODO PICTURE NOTIFICATION + SOUND für Medics
using (var userDeath = new DatabaseContext())
{