View Single Post
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-20-2008 , 03:34   Re: How To: Respawn a player
Reply With Quote #5

Code:
stock fm_user_spawn(id) {  if(!(1 <= id <= global_get(glb_maxClients)))   return;    if(!is_user_alive(id))  {   set_pev(id, pev_deadflag, DEAD_RESPAWNABLE);   dllfunc(DLLFunc_Think, id);  }  else   dllfunc(DLLFunc_Spawn, id); }
I remember that setting the flag to DEAD_RESPAWNABLE and then use DLLFunc_Spawn didn't work properly, so DLLFunc_Think is just fine.
Alka is offline