Raised This Month: $ Target: $400
 0% 

Solved Spawn a player during respawn timer (DOD)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-02-2022 , 13:22   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #2

Code:
public Ham_OnKilled_Post(id, killer)
{
	new Float:value; 
	new string[MAX_STRING];
	
	//pev_deadflag of 'id' is 0 (DEAD_NO)

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

		get_user_origin(id, deathpos);
		dod_set_user_team(id, 2, 0);
				
		//set_pev(id, pev_deadflag, DEAD_RESPAWNABLE);
		//pev_deadflag of 'id' is 3 (DEAD_RESPAWNABLE)
		//DispatchSpawn(id);
		
		ExecuteHamB(Ham_RoundRespawn, id)

		set_user_origin(id, deathpos);
	}
}
__________________









Last edited by CrazY.; 01-02-2022 at 13:23.
CrazY. 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