Thread: new respawn
View Single Post
man_s_our
Senior Member
Join Date: Jul 2017
Location: aim_taliban
Old 03-09-2018 , 20:02   Re: new respawn
Reply With Quote #11

Quote:
Originally Posted by D3XT3R View Post
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.
__________________

Last edited by man_s_our; 03-10-2018 at 09:47.
man_s_our is offline