I'm not current on the changes, but something like this would work to remove the C4
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
public CS_RemoveBomb(client)
{
new weapon_index = -1;
for (new slot = 0; slot < 6; slot++)
{
while ((weapon_index = GetPlayerWeaponSlot(client, slot)) != -1)
{
if (IsValidEntity(weapon_index))
{
if (slot == CS_SLOT_C4)
{
RemovePlayerItem(client, weapon_index);
AcceptEntityInput(weapon_index, "kill");
}
}
}
}
}
__________________