View Single Post
spooky HL15
Member
Join Date: Oct 2015
Old 10-20-2017 , 09:30   Re: [HELP][BB] anti block doors zombie
Reply With Quote #27

Quote:
Originally Posted by Natsheh View Post
Edon i have no idea where you are setting the block, and you have to check if the classname of the (block)func_wall is ignore to ignore it....

but here you go, more simple way...

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <basebuilder>

#define PLUGIN "Anti Barrier Blocking"
#define VERSION "1.0"
#define AUTHOR "Natsheh"

new iBarrierEnt;

const 
Float:MaxRadius 100.0;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
iBarrierEnt engfunc(EngFunc_FindEntityByString, -1"classname""barrier");
    
    if(!
iBarrierEnt)
    {
        
set_fail_state("Barrier Entity is not found!")
    }
}

public 
bb_drop_post(const id, const ent)
{
    new 
entity = -1Float:fOrigin[3];
    
pev(entpev_originfOrigin)
    while( ( 
entity engfunc(EngFunc_FindEntityInSphereentityfOriginMaxRadius) ) > 0)
    {
        if(
entity == iBarrierEnt)
        {
            
client_print(idprint_chat"You can't build here!")
            
set_pev(entpev_originFloat:{0.0,0.0,0.0})
            break;
        }
    }

Requires basebuilder version 6.5 ++
mrs.Natsheh
thank you for your free services but your free services do not work
spooky HL15 is offline