View Single Post
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