here's an example from another thread: (it's old, I don't think you need "#include hamsandwich" anymore)
http://forums.alliedmods.net/showthr...hlight=ham_use
Code:
#include <amxmodx>
#include <hamsandwich>
new bool:IAmUsed[33]
public plugin_init() {
RegisterHam(Ham_Use,"hostage_entity","event_hostage_used",1)
}
public event_hostage_used(hostage, id) {
if(!IAmUsed[hostage]) {
IAmUsed[hostage] = true
client_print(id,print_chat,"Used a hostage")
}
}