Raised This Month: $ Target: $400
 0% 

Solved Spawn a player during respawn timer (DOD)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
cmndrfello
Junior Member
Join Date: Jan 2022
Old 01-02-2022 , 13:48   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Your forward is not in "post". RegisterHam's "post" argument defaults to 0 which means you're in "pre" because you did not specify the argument.
You are right! I have tried it now, but for some reason the player won't respawn, it only skips the death "cutscene"/animation and still waits for the respawn timer to end...

I tried with set_task but still it wont respawn the player...
Code:
public Ham_OnKilled_Post(id, killer)
{
	new Float:value; 
	new string[MAX_STRING];

	if( get_user_team(id) == TEAM_HUMANS ) {
		new deathpos[3];

		get_user_origin(id, deathpos);
		dod_set_user_team(id, TEAM_ZOMBIE, 0);

		ExecuteHamB(Ham_DOD_RoundRespawn, id);
		set_task(0.5, "Revive", id);
		
		set_user_origin(id, deathpos);
	}
}

public Revive(id){
	ExecuteHamB(Ham_DOD_RoundRespawn, id)
}
cmndrfello is offline
 



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 11:29.


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