I Put your code in the code tags, so it reads proper.
You are trying to use this to hide a remote entity?
The attached object gets destroys at the first destroy call and the script stops there, therefore never getting to the destroy other entity number.
Could you post a pic of your map file right there, to get an idea of what you are trying to accomplish.
Thank you.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.
New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774