How can I use wildcard (*) in RegisterHam so it detect all killed
monster_* entities by itself?
And prevent the message to spam/flood the players chat when a monster is killed and gibs.
This script flooding the chat if you kill a headcrab with the crowbar.
Also, execute
server_cmd() when players receive every hundredths frags.
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
public plugin_init ()
{
register_plugin( "Monster Frags", "1.0.0", "Rick" );
RegisterHam(Ham_Killed, "monster_zombie", "Monster_Killed", 1);
}
public Monster_Killed ( const Monster, const Killer )
{
if(is_user_alive( Killer ))
{
client_print( Killer, print_chat, "Monster Killed!");
}
}