Quote:
Originally Posted by Dr.G
make a simple global to count it, something like this:
PHP Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" new g_kill_counter[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Killed, "player", "Player_Killed",1) /* *1 *2 *3 *1 - Register an entity is killed = Ham_Killed *2 - Entity named: player *3 - Function to forward to: Player_Killed */ } public func_Ham_Killed(id, iAttacker, shouldgib) { g_kill_counter[iAttacker]++ client_print(iAttacker, 3, " Kill # %d", g_kill_counter[iAttacker]) }
|
That won't do anything, because you named the function "Player_Killed" and you used "func_Ham_Killed".
And it will be more easy to use deathmsg ( first param - killer )
__________________