AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force Respawn (https://forums.alliedmods.net/showthread.php?t=27798)

TaZz 04-29-2006 18:27

Force Respawn
 
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

v3x 04-29-2006 19:47

You could search for the "Respawn Forever" plugin by Geesu and then look through the pages and find my modified version ;)

GHW_Chronic 04-29-2006 21:01

OR

http://forums.alliedmods.net/showthr...=224900#231844

VEN 05-02-2006 15:52

Isn't Target's method better?

GHW_Chronic 05-02-2006 18:12

that depends on 1 thing. What is target's method?

Orangutanz 05-02-2006 20:40

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 :shock:

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.


All times are GMT -4. The time now is 05:08.

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