AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Bomb planted on round start! (https://forums.alliedmods.net/showthread.php?t=302736)

suhdude 11-09-2017 08:12

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

Thanks :)

suhdude 11-09-2017 10:18

Re: Bomb planted on round start!
 
Maybe this is helpfull to anyone willing to give this a shot.

BOMB scripting tutorial
https://forums.alliedmods.net/showth...=40164?t=40164

Ayman Khaled 11-09-2017 11:33

Re: Bomb planted on round start!
 
this might help you:
https://forums.alliedmods.net/showthread.php?t=125311

suhdude 11-09-2017 14:48

Re: Bomb planted on round start!
 
Quote:

Originally Posted by Ayman Khaled (Post 2559417)

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 }


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

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