|
Member
|
10-20-2017
, 09:30
Re: [HELP][BB] anti block doors zombie
|
#27
|
Quote:
Originally Posted by Natsheh
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(PLUGIN, VERSION, AUTHOR)
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 = -1, Float:fOrigin[3];
pev(ent, pev_origin, fOrigin)
while( ( entity = engfunc(EngFunc_FindEntityInSphere, entity, fOrigin, MaxRadius) ) > 0)
{
if(entity == iBarrierEnt)
{
client_print(id, print_chat, "You can't build here!")
set_pev(ent, pev_origin, Float:{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
|
|
|
|