View Single Post
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 08-19-2008 , 21:12   Re: How To: Respawn a player
Reply With Quote #4

All you need to respawn a player is this:
Code:
set_pev( id, pev_deadflag, DEAD_RESPAWNABLE )
You get your default weapons back as well, the only draw back to this is if you call it instantly ie when a player dies straight away.
I think 3 seconds was the delay else you have to set the above flag and call:
Code:
dllfunc( DLLFunc_Spawn, id )
Regardless its not really logical to respawn a player instantly as soon as they die so just setting the pev_deadflag is sufficient with a task greater than 3 seconds from DeathMsg event.
Orangutanz is offline