The code you posted seems to be for /gcolor not /spawnme. We need to see /spawnme.
I have problem with /gcolor,not with "/spawnme",the command work great. When I use /gcolor,don't spawn me on my gang even if I die. And the color of gang don't change.