Vlau it worked i had wait(1) after ent_remove. thats why it didnt know.

I Got a new question now.
I created a new entity named snowman... He has no action yet becouse i dont know how to do this:
i want that snowman disaperes when he gets hit (or loses health or something else, it doesnt matter). i dont want whole code i just want to know what function should i use for detecting if he was hit by a rock... i cant use event_entity becouse he isnt moving. he is a static target.

Please help and tnx for your help so far.