Raised This Month: $12 Target: $400
 3% 

How To: Respawn a player


Post New Thread Reply   
 
Thread Tools Display Modes
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 09-06-2008 , 06:35   Re: How To: Respawn a player
Reply With Quote #21

DLLFunc_Spawn works perfectly for me, as long as I use the following first:
PHP Code:
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN
It seems that sometimes (maybe 1-2% of the time?) they can stay frozen after they spawn, so you could follow it with:

PHP Code:
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN
[edit] This also needs something like a 0.2 second delay between setting the flags and respawning them.

I can't come up with any explanation for why you have to freeze them (I found this in another thread), but there you have it. I'm not saying it's a better method either, since DLLFunc_Think needs less lines, but it was just to show it's possible.

They spawn with all their default weapons, the HUD, and no ghost corpses that I can see. The only exception is that if spectator is the first team you join when connecting to a server, when you respawn you won't have a HUD until you give yourself an item_suit. After that it sticks.

Last edited by Prajch; 10-05-2008 at 12:52.
Prajch is offline
Soilent0305
Junior Member
Join Date: Oct 2008
Location: Wisconsin
Old 10-16-2008 , 08:28   Re: How To: Respawn a player
Reply With Quote #22

this gave me a really good server idea, fy_snow, respawn them with just a knife in the room under the map, how do i make sure that they only get a knife? and only respawn once? thanks for your help
__________________
8.9.15.83:27015 Soilents 24/7 Roadwars, Still In Work
Soilent0305 is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 12-06-2009 , 07:53   Re: How To: Respawn a player
Reply With Quote #23

I would like to know how to make admin respawn one time per map.
vL. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-10-2009 , 09:05   Re: How To: Respawn a player
Reply With Quote #24

Ask in the Requests section.
__________________
Arkshine is offline
Old 12-13-2009, 02:55
ƒa†es™
This message has been deleted by ƒa†es™.
Afro-Ankan
Member
Join Date: Jul 2009
Location: Sweden
Old 07-30-2010 , 08:03   Re: How To: Respawn a player
Reply With Quote #25

thanks, just what i was looking for
__________________
My Current Projects:
Pistols vs Pistols Public
Progress [ | | | | | | | | | | ]
Only 10% Completed
Afro-Ankan is offline
Send a message via MSN to Afro-Ankan
eskemo
Senior Member
Join Date: Dec 2008
Location: Australia
Old 01-08-2011 , 08:38   Re: How To: Respawn a player
Reply With Quote #26

Does this plugin revive the player constantly, or only once when first joined the game :S ?
__________________


Free Australian FASTDL Server PM ME
eskemo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-08-2011 , 09:06   Re: How To: Respawn a player
Reply With Quote #27

There is no plugin, just a method to respawn a player.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
eskemo
Senior Member
Join Date: Dec 2008
Location: Australia
Old 01-08-2011 , 18:36   Re: How To: Respawn a player
Reply With Quote #28

but does it respawn every time the person dies ?
__________________


Free Australian FASTDL Server PM ME
eskemo is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 01-08-2011 , 20:42   Re: How To: Respawn a player
Reply With Quote #29

Quote:
Originally Posted by eskemo View Post
but does it respawn every time the person dies ?
Call it on the Death Event.
__________________
Hi.
Kreation is offline
Anurag Kumar
Junior Member
Join Date: Jan 2018
Location: India - Delhi
Old 01-10-2018 , 11:13   Re: How To: Respawn a player
Reply With Quote #30

Basic Code

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <hamsandwich> #define PLUGIN "Revive Test" #define VERSION "1.0" #define AUTHOR "Anurag Kumar" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     RegisterHam(Ham_Killed, "player", "Killed", 1) } public client_putinserver(id) {     set_task(6.0, "Revive", id) } public Revive(id){     if(!is_user_alive(id))     ExecuteHamB(Ham_CS_RoundRespawn,id) }
PS: Im Beginner Coder. So Please Don`t Defame Me
Anurag Kumar is offline
Reply


Thread Tools
Display Modes

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 09:05.


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