Raised This Month: $ Target: $400
 0% 

Respawning player right after death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-16-2011 , 10:07   Re: Respawning player right after death
Reply With Quote #1

1. You mixed the params in the header of your task handler.

PHP Code:
public lstchn(origin[3], victim) { 
2. Don't use spawn(). Use
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid
or
PHP Code:
set_pev(idpev_deadflagDEAD_RESPAWNABLE)
dllfunc(DLLFunc_Thinkid
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-16-2011 , 10:31   Re: Respawning player right after death
Reply With Quote #2

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)
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode