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 |
You could search for the "Respawn Forever" plugin by Geesu and then look through the pages and find my modified version ;)
|
|
Isn't Target's method better?
|
that depends on 1 thing. What is target's method?
|
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.