public OnPlayerUpdate(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 10.0)
{
SendClientMessage(playerid, COLOR_RED, "Hi."); //Sending the message
SetPlayerHealth(playerid, 11); //Setting hp to 11 so it wont spam him with the message
}
return 1;
}