Have you tried not creating a "physics_prop_ragdoll" instead use the entity you are using with this command (ent_create prop_ragdoll model "models/player/spy.mdl")
PHP Code:
int rag = CreateEntityByName("prop_ragdoll");
Also dunno if you intended to not transmit the entity you may wanna remove that line.
PHP Code:
SetEdictFlags(rag, FL_EDICT_DONTSEND);
__________________