Raised This Month: $ Target: $400
 0% 

Bomb planted on round start!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-09-2017 , 14:48   Re: Bomb planted on round start!
Reply With Quote #4

Quote:
Originally Posted by Ayman Khaled View Post
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:
Code:
Float:origin[ 3 ];

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 }

Last edited by suhdude; 11-09-2017 at 14:50.
suhdude is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode