Tested your module.
Test Plugin
PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_Killed, "czbot", "fwdPlayerKilled", 1);
RegisterHam(Ham_Spawn, "czbot", "fwdPlayerSpawn", 1);
RegisterHam(Ham_Killed, "player", "fwdPlayerKilled", 1);
RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);
}
public fwdPlayerKilled(iVictim, iKiller, iShouldGib)
{
client_print(0, print_chat, "%s died", (is_user_bot(iVictim) ? "Bot" : "Human"));
}
public fwdPlayerSpawn(iClient)
{
client_print(0, print_chat, "%s Spawn", (is_user_bot(iClient) ? "Bot" : "Human"));
}
Console after test
Code:
Human Spawn
Bot Spawn
Bot Spawn
Bot Spawn
................
*** .:XvG:. SavSin killed Graham with a headshot from ak47 ***
Time Left: 19:50 min. Next Map: de_dust2_cz
Bot died
] kill
.:XvG:. SavSin