1 post · 5,428 views
Thread Rating: ★★★★★
| closedClient death with Hamsandwich |
| Started by Dr.G on 02-10-2009, 01:18 PM |
started this thread
Posts: 776Threads: 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}
