Raised This Month: $ Target: $400
 0% 

Solved Spawn a player during respawn timer (DOD)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-02-2022 , 16:15   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #1

Try Ham_Spawn and remove the task.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2022 , 19:04   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #2

Quote:
Originally Posted by Natsheh View Post
Try Ham_Spawn and remove the task.
I just tested this and it doesn't work.

@cmndrfello, there is a plugin by dodsynthetic that implements and instant spawn using Fakemeta on dodplugins.net. I'm not sure if it works anymore though since I've never used it.
__________________
fysiks is offline
cmndrfello
Junior Member
Join Date: Jan 2022
Old 01-04-2022 , 00:07   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
@cmndrfello, there is a plugin by dodsynthetic that implements and instant spawn using Fakemeta on dodplugins.net. I'm not sure if it works anymore though since I've never used it.
It's exactly what I'm looking for but I can't seem to get it downloaded. You need a activated account and though I created one they don't send a activation email and so I'm stuck as I can't request another email

Last edited by cmndrfello; 01-04-2022 at 00:07.
cmndrfello is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-04-2022 , 02:53   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #4

Here ya go
Attached Files
File Type: sma Get Plugin or Get Source (syns_instant_spawn.sma - 67 views - 5.6 KB)
__________________
fysiks is offline
cmndrfello
Junior Member
Join Date: Jan 2022
Old 01-04-2022 , 10:05   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Here ya go
Thank you! Looks interesting! I will take a look once I get the chance and will update about my findings
cmndrfello is offline
cmndrfello
Junior Member
Join Date: Jan 2022
Old 01-04-2022 , 14:33   Re: Spawn a player during respawn timer (DOD)
Reply With Quote #6

Solved
The plugin actually had a nice solution! I fixed it a bit with the 'pev_deadflag' as the original code had some stuff that could be written a lot nicer

Code:
register_forward(FM_PlayerPreThink, "dod_player_prethink")

public dod_player_prethink(id)
{
	if(pev(id, pev_health) <= 0 && pev(id,pev_team) != 3 && get_pdata_int(id,366) != -1){
		//Player is dead and not spectator
		set_task(0.4,"dod_player_spawn",id);
		set_pev(id, pev_deadflag, DEAD_RESPAWNABLE);
	}
}

public dod_player_spawn(id){
	set_pev(id, pev_iuser1, 0);
	set_pdata_int(id, 264, 0);
	dllfunc(DLLFunc_Spawn, id);
}

Last edited by cmndrfello; 01-04-2022 at 14:34.
cmndrfello 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 11:29.


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