testen Medic
This commit is contained in:
@@ -765,9 +765,9 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
if (!player.IsLoggedIn()) return;
|
if (!player.IsLoggedIn()) return;
|
||||||
|
|
||||||
if (player.GetData<bool>("healDecision") == true)
|
if (player.GetData<bool>("healDecision") == true)
|
||||||
{
|
{
|
||||||
player.SetData<bool>("healDecision", false);
|
|
||||||
Medic.MakeHealDecision(player, false);
|
Medic.MakeHealDecision(player, false);
|
||||||
|
player.SetData<bool>("healDecision", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player.IsInVehicle) return;
|
if (!player.IsInVehicle) return;
|
||||||
|
|||||||
@@ -87,11 +87,13 @@ namespace ReallifeGamemode.Server.Factions.Medic
|
|||||||
if(decision == false)
|
if(decision == false)
|
||||||
{
|
{
|
||||||
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~r~abgelehnt",false);
|
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~r~abgelehnt",false);
|
||||||
|
activeDecision.dTarget.SendNotification("Du hast den Heal ~r~abgelehnt", false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~g~akzeptiert", false);
|
activeDecision.dMedic.SendNotification(activeDecision.dTarget.Name + " hat den Heal ~g~akzeptiert", false);
|
||||||
|
activeDecision.dTarget.SendNotification("Du hast den Heal ~g~akzeptiert", false);
|
||||||
using var dbContext = new DatabaseContext();
|
using var dbContext = new DatabaseContext();
|
||||||
{
|
{
|
||||||
User targetUser = target.GetUser(dbContext);
|
User targetUser = target.GetUser(dbContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user