Respawning player right after death
How can I respawn a player 1 second after death?
PHP Code:
Tried ExecuteHamB(Ham_CS_RoundRespawn,victim), same error. Also tried http://forums.alliedmods.net/showpos...4&postcount=19 and I get another error: [FAKEMETA] Invalid entity |
Re: Respawning player right after death
1. You mixed the params in the header of your task handler.
PHP Code:
PHP Code:
PHP Code:
|
Re: Respawning player right after death
1. Hook Ham_Killed or DeathMsg event.
2. set_task( ) with parameter the victim and time 1.0 3. ExecuteHamB( Ham_CS_RoundRespawn , victim ) (don't forget to check if the player isn't alive) |
Re: Respawning player right after death
Thanks Exolent. :D
But now when the player is respawned, his corpse is removed from the game. How can I prevent that? |
Re: Respawning player right after death
Quote:
|
Re: Respawning player right after death
PHP Code:
|
Re: Respawning player right after death
I've tried making a new corpse in the ClCorpse event but it still gets removed from the game. Guess it just edits the original model...
PHP Code:
|
Re: Respawning player right after death
any help with this? i need it too :S
|
Re: Respawning player right after death
Quote:
|
Re: Respawning player right after death
You will have a map full of dead bodies, and if you have a respawn server remember that the entity limit is set to 512 if i remember corectly, not really a good ideea to keep the bodies on the map. My opinion at least.
|
| All times are GMT -4. The time now is 23:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.