Nice idea!, regarding canceling healing, perhaps this can be helpful in not removing the player's kit
PHP Code:
public Action OnTimerCheckIfInterrupted(Handle timer, any healerID) {
int healer = GetClientOfUserId(healerID);
if (healer > 0 && healingTarget[healer] != 0) {
if (isPlayerAliveSurvivor(healer)) {
int item = GetPlayerWeaponSlot(healer, 3);
int activeWeapon = GetEntPropEnt(healer, Prop_Send, "m_hActiveWeapon");
if (item != -1 && item == activeWeapon) {
char classname[32];
GetEntityClassname(item, classname, sizeof classname);
if (StrEqual(classname, "weapon_first_aid_kit")) {
//RemovePlayerItem(healer, item);
//AcceptEntityInput(item, "Kill");
//giveItem(healer, "first_aid_kit");
int target = GetEntPropEnt(healer, Prop_Send, "m_useActionTarget");
if(isPlayerAliveSurvivor(target)){
SetEntPropEnt(target, Prop_Send, "m_useActionOwner", 0);
SetEntPropEnt(target, Prop_Send, "m_useActionTarget", 0);
SetEntProp(target, Prop_Send, "m_iCurrentUseAction", 0);
}
SetEntPropEnt(healer, Prop_Send, "m_useActionTarget", 0);
SetEntPropEnt(healer, Prop_Send, "m_useActionOwner", 0);
SetEntProp(healer, Prop_Send, "m_iCurrentUseAction", 0);
}
}
}
}
}