Raised This Month: $ Target: $400
 0% 

Force Respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TaZz
New Member
Join Date: Jan 2005
Old 04-29-2006 , 18:27   Force Respawn
Reply With Quote #1

Hey id like to know how to code a simple plugin that would respawn a player when he/she dies. A 4 seconds delay would be appreciated.
now of course there is the csdm plugin available but i cant get it running on my dedicated. if you're an expert with coding and would like to help me out, it would be appreciated, thanks
TaZz is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-29-2006 , 19:47  
Reply With Quote #2

You could search for the "Respawn Forever" plugin by Geesu and then look through the pages and find my modified version ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-29-2006 , 21:01  
Reply With Quote #3

OR

http://forums.alliedmods.net/showthr...=224900#231844
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2006 , 15:52  
Reply With Quote #4

Isn't Target's method better?
VEN is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 05-02-2006 , 18:12  
Reply With Quote #5

that depends on 1 thing. What is target's method?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 05-02-2006 , 20:40  
Reply With Quote #6

Yes T(+)rget's method is better, I haven't encountered any problems with it on AMXX.
It just depends when you want to respawn someone.

There is 3 different methods for CS

1) 1st joining server spawn:
dllfunc(DLLFunc_Spawn, id)

2) Quick respawn upon death (3 seconds and under):
set_pev(id, pev_deadflag, 3)
dllfunc(DLLFunc_Spawn, id)

3) Delayed respawn upon death (3 seconds+):
set_pev(id, pev_deadflag, 3)

Notes:
Method 2 shouldn't really be faster than 0.5, I have noticed ghosts under this time.
Method 3 you do need to freeze the client, so they can't move around as Spectator else they won't respawn for some unknown reason.
All methods give you your default equipment.
Orangutanz 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 05:08.


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