Raised This Month: $51 Target: $400
 12% 

Bomb planted on round start!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-09-2017 , 08:12   Bomb planted on round start!
Reply With Quote #1

Is it possible to make a plugin that automatically plants the bomb on a site when the round starts?

Thanks
suhdude is offline
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-09-2017 , 10:18   Re: Bomb planted on round start!
Reply With Quote #2

Maybe this is helpfull to anyone willing to give this a shot.

BOMB scripting tutorial
https://forums.alliedmods.net/showth...=40164?t=40164
suhdude is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 11-09-2017 , 11:33   Re: Bomb planted on round start!
Reply With Quote #3

this might help you:
https://forums.alliedmods.net/showthread.php?t=125311
__________________
Ayman Khaled is offline
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
Reply



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 00:42.


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