new Float:HP; new hp = GetPlayerHealth(playerid,HP); if(hp==90) { Your Animation } else if(hp==80) { YourAnimation } ....