Quote:
Originally Posted by D3XT3R
can be done with better ways
Code:
#include < amxmodx >
#include < amxmisc >
#include < hamsandwich >
public plugin_init( ) {
RegisterHam( Ham_Killed, "player", "Ham_PlayerDeath", 1 )
}
public Ham_PlayerDeath( victim, attacker, shouldgib ) {
set_task( 1.0, "respawn", victim )
}
public respawn( victim ) {
if( is_user_alive( victim ) )
return
ExecuteHamB( Ham_CS_RoundRespawn, victim )
}
|
does the code worked with that plugin?
because it doesn't record c4's victims as I observed.
edit:
tested it and it works.
thanks.
2nd edit:
it respawns only human players not bots.
__________________