///damage_player(amount)

if(invuln_counter == invuln_counter_max)
{
    hp -= argument0;
    invuln_counter = 0;
}