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