Ich habe noch etwas rum probiert und es funktioniert nun!
Hier für die Allgemeinheit (Mit dem Erneutes neues Nachrichtensystem mit Emojis)
Spoiler anzeigen
C: fn_healHospital.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_healHospital.sqf
Author: Bryan "Tonic" Boardwine
Reworked: Jesse "TKCJesse" Schultz
Description:
Prompts user with a confirmation dialog to heal themselves.
Used at the hospitals to restore health to full.
Note: Dialog helps stop a few issues regarding money loss.
*/
private ["_healCost"];
_medicsOnline = {_x != player && {side _x == independent} && {alive _x}} count playableUnits > 0;
if(_medicsOnline) exitWith {["Es sind noch andere Ärtzte da! Ich bin aktuell zu beschäftigt.","fast","red"] spawn life_fnc_message;};
_healCost = LIFE_SETTINGS(getNumber,"hospital_heal_fee");
if(CASH < _healCost) exitWith {[format [localize "STR_NOTF_HS_NoCash",_healCost],"fast","red"] spawn life_fnc_message;};
CASH = CASH - _healCost;
[localize "STR_NOTF_HS_Healing","fast","green"] spawn life_fnc_message;
sleep 8;
if(player distance (_this select 0) > 5) exitWith {[localize "STR_NOTF_HS_ToFar","fast","red"] spawn life_fnc_message;};
[format [localize "STR_NOTF_HS_Healed",_healCost],"fast","green"] spawn life_fnc_message;
[player,player] call ace_medical_fnc_treatmentAdvanced_fullHealLocal;
Alles anzeigen
In die Init vom Schild muss das rein:
this addAction ["Heile", life_fnc_healHospital];
Und die stringtable.xml muss angepasst werden mit einem %1 für die Geld Angabe bei abgeschlossenem heilen.