PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new bool: g_isalive[33], bool:g_isconnected[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "ham_PlayerKilled")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
}
public client_putinserver(id)
g_isconnected[id]=true
public client_disconnect(id)
g_isconnected[id]=false
public ham_PlayerKilled(victim, attacker, shouldgib)
g_isalive[victim]=false
public ham_PlayerSpawn_Post(id)
g_isalive[id]=true
Is It this really enough? Will Ham detect if some other plugin will kill player some unusual way, DLLFunc_ClientKill, for example?
__________________