12.06.2017, 11:40
I haven't tested it ingame, but it should work I guess.
PHP Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(HP == 5)
{
SetPlayerHealth(playerid, 5);//If this doesn't work, you could set the player's health -1 and create a timer to set it back to 5.
}
return 1;
}