I see you used "while" for pid number...
isn't there any "all" object or something cause there can easelly be more than 599 pids (i'm talking about my mod). Doesn't while take long time to calculate? It has to run 600 times over and over again every single time you enter a map (and that would be for all maps) maybe exporting pointer from remove script to say map script, and then do the clearing of pointed object (say after exit) i realy would not know how to do this. I'll take a look at dude_obj exemple for dude_obj see if i could figure it out. But if you know already, please let me know. (looks like we are close to the end of removing problem).