PHP Code:
org spawn("script_origin"origin); 
This looks kinda problematic, does it actually convert to self.origin? Maybe just try (0,0,0) as origin or explicitly use self.origin... maybe also iprintln(self.origin), just to be sure the origin is from the spawned player.