using addBullet = bool(__cdecl*)(CEntity*, eWeaponType, CVector, CVector);
constructor() {
std::uintptr_t base = reinterpret_cast<std::uintptr_t>(GetModuleHandleA("samp.dll"));
kthook::kthook_simple<addBullet>(bullet);
bullet.set_cb([](const auto& hook, CEntity* eShooter, eWeaponType weaponType, CVector vecPosition, CVector vecVelocity) {
sampapi::v037r1::RefChat()->AddMessage(-1, (std::to_string((int)weaponType)).c_str());
return hook.get_trampoline()(eShooter, weaponType, vecPosition, vecVelocity);
});
bullet.set_dest(base + 0xA0BB0);
bullet.install();
}