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

Multibomb remover plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blue zebra
BANNED
Join Date: Jun 2010
Old 06-17-2012 , 07:47   Multibomb remover plugin?
Reply With Quote #1

Hi.
CSS.
We use more than one c4 on the server.
Someone can write a little plugin which remove the rest of the bombs from the map, when a bomb will be planted?
From the ground and from the players too. If it's possible.
Thanks in advance.

Last edited by blue zebra; 06-17-2012 at 13:06.
blue zebra is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 06-17-2012 , 09:18   Re: Multibomb remove plugin?
Reply With Quote #2

Maybe this

PHP Code:
#include <sourcemod> 
#include <sdktools> 
 

public OnPluginStart() 

    
HookEvent"bomb_planted"Event_BombPlanted );     



public 
Action:Event_BombPlantedHandle:event, const String:name[], bool:dontBroadcast )
{
    new 
maxent GetMaxEntities(), String:weapon[64];
    for (new 
i=GetMaxClients();i<maxent;i++)
    {
        if ( 
IsValidEdict(i) && IsValidEntity(i) )
        {
            
GetEdictClassname(iweaponsizeof(weapon));
            if (
StrContains(weapon"weapon_c4") != -1)
                    
RemoveEdict(i);
        }
    }

__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
blue zebra
BANNED
Join Date: Jun 2010
Old 06-17-2012 , 10:13   Re: Multibomb remover plugin?
Reply With Quote #3

It seems to works. Thanks. Hardcore testing come.
Can you add a checking function? I want to use this only on the de_xxx maps.
On cs_maps not.

Edit:
From the ground the bombs removed nicely.
I found a little bug. See. This bug appear cca. 2-3 seconds. Can you kill this bug? Maybe first drop the c4 from the player to the ground and only after that remove?
Or this is not possible?
Attached Thumbnails
Click image for larger version

Name:	bug.JPG
Views:	125
Size:	33.4 KB
ID:	105158  

Last edited by blue zebra; 06-17-2012 at 14:17.
blue zebra is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-17-2012 , 11:47   Re: Multibomb remove plugin?
Reply With Quote #4

So you want it to remove the bomb from the planter? and not the entire server?
Mitchell is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 06-17-2012 , 12:07   Re: Multibomb remover plugin?
Reply With Quote #5

Sorry my fault. This error seems only visible from the spectator. If i am the second planter, i am not see this bug on my monitor. Interesting.
I want this plugin for remove the unused bombs when one c4 planted. I am not a programmer. The first drop, then remove c4 for the players are a stupid idea?

Last edited by blue zebra; 06-17-2012 at 13:05.
blue zebra is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-17-2012 , 13:33   Re: Multibomb remover plugin?
Reply With Quote #6

Quote:
Originally Posted by blue zebra View Post
Sorry my fault. This error seems only visible from the spectator. If i am the second planter, i am not see this bug on my monitor. Interesting.
I want this plugin for remove the unused bombs when one c4 planted. I am not a programmer. The first drop, then remove c4 for the players are a stupid idea?
Remove the bomb then switch the player's weapon to last used, perhaps.
Mitchell is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 06-17-2012 , 14:15   Re: Multibomb remover plugin?
Reply With Quote #7

Not bad idea. Good for me.
blue zebra is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 11-05-2012 , 01:57   Re: Multibomb remover plugin?
Reply With Quote #8

Hi.
I try to use multibombs and this little plugin. But i see one little bug. When someone planting a bomb, the plant sound hear from the T spawn only. Maybe it's my client's fault? If not, anyone can repairing this error? Thanks.

Game, system: CSS, Linux

Last edited by pubhero; 11-05-2012 at 01:58.
pubhero is offline
Reply


Thread Tools
Display Modes

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 13:03.


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