Raised This Month: $32 Target: $400
 8% 

[HELP][BB] anti block doors zombie


Post New Thread Reply   
 
Thread Tools Display Modes
spooky HL15
Member
Join Date: Oct 2015
Old 10-21-2017 , 16:43   Re: [HELP][BB] anti block doors zombie
Reply With Quote #31

Quote:
Originally Posted by edon1337 View Post
Idk if it's gonna work but try it.
PHP Code:
#include < amxmodx >
#include < basebuilder >
#include < engine >

new g_iBarrierEnt;

const 
Float:g_iMaxDistance_X 10.0;
const 
Float:g_iMaxDistance_Y 10.0;
const 
Float:g_iMaxDistance_Z 10.0;

public 
plugin_init( )
{
    
register_plugin"Prevent Door Blocking""1.0""DoNii" );

    
g_iBarrierEnt find_ent_by_class( -1"barrier" );
}

public 
bb_round_started( )
{
    if( ! 
is_valid_entg_iBarrierEnt ) )
    return 
PLUGIN_CONTINUE;

    new 
Float:fOriginDoor], Float:fOriginBlock];
    
entity_get_vectorg_iBarrierEntEV_VEC_originfOriginDoor );

    new 
iEnt = -1;

    while( ( 
iEnt find_ent_by_class( -1"func_wall" ) ) != )
    {
        
entity_get_vectoriEntEV_VEC_originfOriginBlock );

        if ( ( ( 
fOriginDoor] - fOriginBlock] ) <= g_iMaxDistance_X ) || ( ( fOriginBlock] - fOriginDoor] ) <= g_iMaxDistance_X )
        || ( ( ( 
fOriginDoor] - fOriginBlock] ) <= g_iMaxDistance_Y ) || ( ( fOriginBlock] - fOriginDoor] ) <= g_iMaxDistance_Y )
        || ( ( ( 
fOriginDoor] - fOriginBlock] ) <= g_iMaxDistance_Z ) || ( ( fOriginBlock] - fOriginDoor] ) <= g_iMaxDistance_Z ) ) ) )
        {
            
            
fOriginBlock] = fOriginBlock] / 10.0;
            
fOriginBlock] = fOriginBlock] / 20.0;
            
fOriginBlock] = fOriginBlock] / 30.0;
            
            
entity_set_vectoriEntEV_VEC_originfOriginBlock );
        }
    }
    return 
PLUGIN_CONTINUE;

sorry my friend but i try your scripting but not work
spooky HL15 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-21-2017 , 17:17   Re: [HELP][BB] anti block doors zombie
Reply With Quote #32

Quote:
Originally Posted by spooky HL15 View Post
when i copy your scripting i drop it in max mod x there is euror
25 "public bb_drop_post(const id, const ent)"
i have Version 6.5
You do know you have to compile it locally , you can find the basebuilder include file from tirant post(from the mod), do you have problem compiling or no?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
spooky HL15
Member
Join Date: Oct 2015
Old 10-22-2017 , 06:26   Re: [HELP][BB] anti block doors zombie
Reply With Quote #33

Quote:
Originally Posted by Natsheh View Post
You do know you have to compile it locally , you can find the basebuilder include file from tirant post(from the mod), do you have problem compiling or no?
ok i fix probleme i do not have problem compiling but i want ask you
when i add your plugin i need to add set block origin to 0.0 0.0 0.0 ?
spooky HL15 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-22-2017 , 07:04   Re: [HELP][BB] anti block doors zombie
Reply With Quote #34

Quote:
Originally Posted by spooky HL15 View Post
ok i fix probleme i do not have problem compiling but i want ask you
when i add your plugin i need to add set block origin to 0.0 0.0 0.0 ?
Where you are adding the code?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-22-2017 at 07:05.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
spooky HL15
Member
Join Date: Oct 2015
Old 10-22-2017 , 09:47   Re: [HELP][BB] anti block doors zombie
Reply With Quote #35

Quote:
Originally Posted by Natsheh View Post
Where you are adding the code?
i add it in basebuilder65.sma and i compile to amxx and adding to plugins.ini ?
spooky HL15 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-22-2017 , 10:06   Re: [HELP][BB] anti block doors zombie
Reply With Quote #36

Dont add it in the main plugin make a new file paste the code in it , name the file what ever you want, save the file as sma type (.sma), add all the nesscary include files compile the file paste the name you have chosen under the mod name... In the plugins-base builder.ini file
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
spooky HL15
Member
Join Date: Oct 2015
Old 10-22-2017 , 10:16   Re: [HELP][BB] anti block doors zombie
Reply With Quote #37

Quote:
Originally Posted by Natsheh View Post
Dont add it in the main plugin make a new file paste the code in it , name the file what ever you want, save the file as sma type (.sma), add all the nesscary include files compile the file paste the name you have chosen under the mod name... In the plugins-base builder.ini file
but you say i need to add Coordinates doors in scripting ? or just add in new plugin ....

Last edited by spooky HL15; 10-22-2017 at 10:16.
spooky HL15 is offline
GrimmReaper
Junior Member
Join Date: Oct 2017
Location: Name's the Clue
Old 10-22-2017 , 10:33   Re: [HELP][BB] anti block doors zombie
Reply With Quote #38

Man natsheh, dexter and djsoftero banned by asherkin for trash talk.
__________________
Add Me On Steam
GrimmReaper is offline
spooky HL15
Member
Join Date: Oct 2015
Old 10-22-2017 , 10:56   Re: [HELP][BB] anti block doors zombie
Reply With Quote #39

Quote:
Originally Posted by GrimmReaper View Post
Man natsheh, dexter and djsoftero banned by asherkin for trash talk.
hhhhh what fuck
spooky HL15 is offline
spooky HL15
Member
Join Date: Oct 2015
Old 11-01-2017 , 08:06   Re: [HELP][BB] anti block doors zombie
Reply With Quote #40

Quote:
Originally Posted by Natsheh View Post
Dont add it in the main plugin make a new file paste the code in it , name the file what ever you want, save the file as sma type (.sma), add all the nesscary include files compile the file paste the name you have chosen under the mod name... In the plugins-base builder.ini file
sorry for my stupid Asked but
how i can know
Code:
set_pev(ent, pev_origin, Float:{0.0,0.0,0.0})

Last edited by spooky HL15; 11-01-2017 at 08:08.
spooky HL15 is offline
Old 11-01-2017, 08:06
spooky HL15
This message has been deleted by spooky HL15.
Reply



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 23:38.


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