I use this plugin
http://forums.alliedmods.net/showthread.php?t=62756 and I try to do that if you're not targeting on player you can heal yourself I think I must modify this:
PHP Code:
public start_healing_process(id, targetid){
stop_healing_process(id)
check_health(targetid)
if(g_p_healers[targetid] >= get_pcvar_num(g_maxhealers)){
if(g_snd_frames[id] == 0)
sndl_add(id)
g_snd_next[id] = EIM_SND_UNABLE
}else if((g_p_points[id] <= NO_HEAL_POINTS && get_pcvar_num(g_healpoints) > 0 ) || g_p_dmg[targetid] <= NO_DAMAGE){
if(g_snd_frames[id] == 0)
sndl_add(id)
g_snd_next[id] = EIM_SND_UNABLE
}else{
g_p_target[id] = targetid
g_p_healers[targetid]++
g_list_healers[PTR_LC]++
g_list_healers[g_list_healers[PTR_LC]] = id
if(g_snd_frames[id] == 0)
sndl_add(id)
if(g_snd_next[id] != EIM_SND_HEALING)
g_snd_next[id] = EIM_SND_START
g_snd_frames[id] = 0
}
}
public stop_healing_process(id){
if(g_p_target[id] != NO_TARGET){
if(g_snd_next[id] != EIM_SND_NONE)
g_snd_next[id] = EIM_SND_UNABLE
g_p_healers[g_p_target[id]]--
g_p_target[id] = NO_TARGET
static i
i = 1
while(g_list_healers[i]!=id)
i++
while(i<g_list_healers[PTR_LC]){
g_list_healers[i] = g_list_healers[i+1]
i++
}
g_list_healers[PTR_LC]--
}
}
but I don't know where exactly I must do this