Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › DoD Plugins › Trash › Client death with Hamsandwich
1 post · 5,428 views Thread Rating: ★★★★★
closedClient death with Hamsandwich
Started by Dr.G on 02-10-2009, 01:18 PM
Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
02-10-2009, 01:18 PM #1

This is the way to register a client/player death using Hamsandwich:rnrn

#include <amxmodx>rn#include <amxmisc>rn#include <hamsandwich>rnrn#define PLUGIN "Ham client death"rn#define VERSION "1.0"rn#define AUTHOR "Dr.G"rnrnrnpublic plugin_init() rn{rn	register_plugin(PLUGIN, VERSION, AUTHOR)rn	rn	RegisterHam(Ham_Killed, "player", "Player_Killed",1)rn	/*		    *1	       *2		    *3rn	rn	*1 - Register an entity is killed = Ham_Killedrn	*2 - Entity named: playerrn	*3 - Function to forward to: Player_Killed  */rn}rnrnpublic Player_Killed(id, idAttacker, shouldgib)rn{rn	new name[33]rn	get_user_name(id, name, 32)rnrn	client_print(id,print_center,"You died %s",name)rnrn	return HAM_IGNOREDrn}
Archive › Old Forum Threads › DoD Plugins › Trash › Client death with Hamsandwich
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC