You could catch the bomb defused sound ( if it's emitted from the C4 entity ) and then use the entity id for that.
If you want to get the entid for the first bomb planted this *should* work:
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_event("HLTV" , "event_HLTV" , "a" , "1=0" , "2=0");
register_forward(FM_SetModel , "forward_SetModel");
}
new g_FirstC4ID;
public event_HLTV()
g_FirstC4ID = 0;
public forward_SetModel(ent , const model[])
{
if(equal(model , "models/w_c4.mdl") && !g_FirstC4ID)
g_FirstC4ID = ent;
}
__________________