View Single Post
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-13-2021 , 16:54   Re: help me with this respawn plugin
Reply With Quote #3

Quote:
Originally Posted by Black Rose View Post
This is what I use on my server.
Doesn't detect spectator change, you'll have to add that separately.
Code:
#include <amxmodx> #include <hamsandwich> public plugin_init() {     RegisterHam(Ham_Killed, "player", "fwd_HamKilled"); } public fwd_HamKilled(Victim, Attacker, Shouldgib)     set_task(1.0, "RespawnPlayer", Victim); public RespawnPlayer(id) {     if ( ! is_user_connected(id) )         return;         ExecuteHamB(Ham_Spawn, id); }
If you are using this in a counter-strike server you should use Ham_CS_RoundRespawn instead of Ham_Spawn
__________________








CrazY. is offline