don't know for the + sign seen only by teammates, someone more expirienced maybe can help you.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#define MAXPLAYERS 32
#define VERSION "1.0"
new gHP, gTimes;
new gHealTimes[MAXPLAYERS + 1];
public plugin_init()
{
register_plugin("+e Regeneration", VERSION, "MaNiax");
RegisterHam( Ham_ObjectCaps , "player", "Forward_ObjectCaps" )
register_event("HLTV", "eNewRound", "a", "1=0", "2=0");
gHP = register_cvar("th_heal", "25");
gTimes = register_cvar("th_healtimes", "2");
}
public eNewRound(id)
{
new iPlayers[MAXPLAYERS], iNum, iAll;
get_players(iPlayers, iNum, "a");
for( new i = 0; i < iNum; i++ )
{
iAll = iPlayers[i];
gHealTimes[iAll] = 0;
}
}
public Forward_ObjectCaps(id)
{
if(!is_user_alive(id))
return;
if( gHealTimes[id] < get_pcvar_num(gTimes) )
{
set_user_health(id, get_user_health(id) + get_pcvar_num(gHP));
client_print(id, print_chat, "** You refreshed your health! (+%i HP)", get_pcvar_num(gHP));
gHealTimes[id]++;
}
else
client_print(id, print_chat, "** You have already healed %i/%i Times!", gHealTimes[id], get_pcvar_num(gTimes));
}