19.01.2013, 04:16
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(gTeam[damagedid] == gTeam[playerid])
{
new Float:h;
GetPlayerHealth(damagedid,h);
SetPlayerHealth(damagedid,h+amount);
}
return 1;
}