Quote:
Originally Posted by Ayman Khaled
|
Thank you, but I could not get any of those scripts to work.
But I found this in another thread, and it plants a bomb when you type /plant.
I tried to make a hybrid of this plugin and the ones found in the thread you linked me.
But I'm not skilled enough to do that..
I tried changing:
To:
Code:
Float:origin[] = { -1330.1298, -114.0, 287.0 } )
It did not work, and I actually don't really know what I'm doing here.
Maybe someone can help me, here is the plugin I found:
What I want it to do is, plant a bomb on a site straight away.
Or if that is hard to make: make the player that spawns with the bomb plant it straight away.
(This is not as good because I want to spread the spawnpoints out across the entire bombsite as I'm trying to make a bomsite retake server.)
Thanks a ton!
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
}