To retrieve the C4 exploding location, you can just check where was the bomb site spawned.
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define VERSION "1.0"
new HamHook:fw_BombSpawn;
public plugin_precache()
{
fw_BombSpawn = RegisterHam(Ham_Spawn, "info_bomb_target", "Forward_BombsSitesSpawn", 1);
}
public plugin_init()
{
register_plugin("Bomb Sites Locations", VERSION, "Dores");
}
public Forward_BombsSitesSpawn(site)
{
DisableHamForward(fw_BombSpawn); // Remove this line if you're using a custom C4 plugin(like Fake C4).
static Float:flOrigin[3];
pev(site, pev_origin, flOrigin);
}
__________________