Player respawn event
Player respawn event, I'm looking for a way to do this.
Ive tried: Code:
Maybe I'm doing something wrong, here is the whole plug-in (v0.16): Code:
|
quick look at this code and for me it should work.
ResetHUD event isn't always executed ? I will try to check this later ( Now I going to play on your server :) ) |
You can try this, it works almost perfectly for when the round restarts:
Code:
But that's for a new round. It seems like you want to call an event every time a person dies, respawn them and protect them for a certain amount of time, if this is the case then you should use Code:
|
He need this for DoD.... :lol:
|
>.> ok...but these functions aren't mod dependant are they?
|
Is there spawn killing in DoD? :)
|
Therwe is spawn killing when the map is de_dust. That is de_dust on a DoD Server :)
So I need to have spawn protection for when players re-spawn. Quote:
Votorx I did think about that but the problem is the way DoD re-spawns palyers. It happens in waves of something like 5-10 seconds (Server variable), not when the individual player dies. This makes it difficult to know how long the player will have to wait until they respawn, as this can be anything from instantly to 10 seconds. |
so also use client_print(..) , show_message may not be displayed (only 4 shared chanels)
|
I see...Well ResetHUD isn't a very reliable event...
So you may want to do something like this: Code:
Try some like that to get whenever a player respawns. |
With fakemeta this will probably be very easy. Hook the spawn function itself, and there you go. Maybe you want to hook the post one, and so the forward will be called right after a player has spawned (before is probably not a good idea). In the forward function check if entity is 1 <=> maxplayers, and then set him to godmode for a few secs... and maybe a settask to ungodmode back in 5 secs... I just guess DoD also uses the Spawn function to respawn players.
|
| All times are GMT -4. The time now is 17:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.