Thread: Module: Rage
View Single Post
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-11-2012 , 05:00   Re: Module: Rage
Reply With Quote #47

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(iVictimiKilleriShouldGib)
{
    
client_print(0print_chat"%s died", (is_user_bot(iVictim) ? "Bot" "Human"));
}




public 
fwdPlayerSpawn(iClient)
{
    
client_print(0print_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

Last edited by Doc-Holiday; 03-11-2012 at 05:00.
Doc-Holiday is offline