09.06.2013, 12:42
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if(issuerid != INVALID_PLAYER_ID) { if(PlayerInfo[playerid][gTeam] == PlayerInfo[playerid][gTeam]) { new Float:health, Float:newhealth; health = GetPlayerHealth(playerid, health); newhealth = health += amount; SetPlayerHealth(playerid, newhealth); } } }