you can use this ??
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
public plugin_init()
{
register_clcmd("say /plant", "PlantABomb")
}
// "detonatedelay" Delay before bomb explode (Putting 'detonatedelay' to 0 would force it to mp_c4timer value.)
// "detonatetarget" Triggered when bomb is detonated.
// "defusetarget" Triggered when bomb is defused.
public PlantABomb( player ) {
new iEntity = create_entity( "weapon_c4" );
if( !iEntity )
return;
DispatchKeyValue( iEntity, "detonatedelay", "50" );
DispatchSpawn( iEntity );
new Float:origin[ 3 ];
pev( player, pev_origin, origin );
engfunc( EngFunc_SetOrigin, iEntity, origin );
force_use( iEntity, iEntity ); // This plants it
}
__________________