The following code works fine with PodBots, means that the problem is somewhere in your code, you may try to supercede the forward and fire another touch.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Detect c4"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"
#define IsPlayer(%1) ( 1 <= %1 <= g_iMaxPlayers )
new g_iMaxPlayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
g_iMaxPlayers = get_maxplayers()
RegisterHam(Ham_Touch, "weapon_c4", "C4_Touch")
}
public C4_Touch(iEnt, id)
{
if( IsPlayer(id) )
{
client_print(0, print_chat, "C4 touched by %d", id)
}
}
__________________