Raised This Month: $23 Target: $400
 5% 

[REQ] BB_Hook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yousuf khan
Junior Member
Join Date: May 2019
Old 06-29-2020 , 04:49   [REQ] BB_Hook
Reply With Quote #1

Hi.
I Need Hook Plugin !!
That Hook Is Not Normal Hook I Need Hook For VIPS
Flag "t"
This Hook Just Will Be Work On "Build Phase"
And In Prep Time And Other Time Hook Will Be Not Work Can If AnyOne Try To Use Hook After
BuildTime Then Show This Message
[BaseBuilder] Only VIPS Can Use Hook During Build Phase.

Can AnyOne Make This Plugin Without Any Error During Compiling Please !!
yousuf khan is offline
Supremache
Senior Member
Join Date: Sep 2019
Old 06-29-2020 , 06:18   Re: [REQ] BB_Hook
Reply With Quote #2

Quote:
Originally Posted by yousuf khan View Post
Hi.
I Need Hook Plugin !!
That Hook Is Not Normal Hook I Need Hook For VIPS
Flag "t"
This Hook Just Will Be Work On "Build Phase"
And In Prep Time And Other Time Hook Will Be Not Work Can If AnyOne Try To Use Hook After
BuildTime Then Show This Message
[BaseBuilder] Only VIPS Can Use Hook During Build Phase.

Can AnyOne Make This Plugin Without Any Error During Compiling Please !!
PHP Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>




/* Tirant Zombie Base Builder or Veco Zombie Base Builder */
 
#define USE_TIRANT_ZBB
//#define USE_VECO_ZBB
 
#if defined USE_TIRANT_ZBB
    #include <basebuilder>
    #define IsBuildPhase() bb_is_build_phase()
#endif
 
 
new bool:g_bHook33 ];
 
new 
gHookOrigins33 ][ ];
 
new 
g_iHook;
 
new const 
g_szPrefix[ ] = "Your Prefix Here";
 
public 
plugin_init( )
{
    
register_plugin"[ ZBB Addon ] Hook""1.0""One Above All" );
   
    
register_clcmd"+hook""hook_on" );
    
register_clcmd"-hook""hook_off" );
}
public 
plugin_precache( )

    
g_iHook precache_model"sprites/zbb/hook.spr" );
}
public 
hook_onid )
{
    if ( !(
get_user_flagsid ) & ADMIN_LEVEL_A) && !IsBuildPhase( ) )
    {
        
ColorMessageid"Only^3 Admins^1 can use hook after build phase." );
        return 
PLUGIN_HANDLED;
    }
    if ( 
get_user_teamid ) != )
    {
        
ColorMessageid"Only^3 Counter-Terrorists^1 can use hook!" );
        return 
PLUGIN_HANDLED;
    }
    
    if ( 
IsBuildPhase() || !has_flagid"t" )  && !IsBuildPhase())
    {
        
get_user_originidgHookOriginsid ], );
        
g_bHookid ] = true;
        
set_task0.1"hook_task"id""0"ab" );
        
hook_taskid );
    }
    return 
PLUGIN_HANDLED;
}
public 
hook_offid )
{
    
remove_hookid );
    return 
PLUGIN_HANDLED;
}
public 
hook_taskid )
{
    if( !
is_user_connectedid ) || !has_flagid"t" ) || !is_user_aliveid ) )
        
remove_hookid );
   
    
remove_beamid );
    
draw_hookid );
    new 
iOrigin], Float:fVelocity];
   
    
get_user_originidiOrigin );
    new 
iDistance get_distancegHookOriginsid ], iOrigin);
    if ( 
iDistance 25 )
    {
        
fVelocity] = ( gHookOriginsid ][ ] - iOrigin] ) * ( 2.0 300 iDistance );
        
fVelocity] = ( gHookOriginsid ][ ] - iOrigin] ) * ( 2.0 300 iDistance );
        
fVelocity] = ( gHookOriginsid ][ ] - iOrigin] ) * ( 2.0 300 iDistance );
        
entity_set_vectoridEV_VEC_velocityfVelocity );
    }
    else
    {
        
entity_set_vectoridEV_VEC_velocityFloat:{0.0,0.0,0.0} );
        
remove_hookid );
    }
}
public 
draw_hookid )
{
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
    
write_byte);                // TE_BEAMENTPOINT
    
write_shortid );          // Entity index
    
write_coordgHookOriginsid ][ ] );     // Origin
    
write_coordgHookOriginsid ][ ] );     // Origin
    
write_coordgHookOriginsid ][ ] );     // Origin
    
write_shortg_iHook );             // Sprite index
    
write_byte);                // Start frame
    
write_byte);                // Framerate
    
write_byte100 );          // Life
    
write_byte10 );           // Width
    
write_byte);                // Noise
    
write_byterandom_num(0255) );       // Red
    
write_byterandom_num(0255) );       // Green
    
write_byterandom_num(0255) );       // Blue
    
write_byte250 );          // Brightness
    
write_byte);                // Speed
    
message_end( );
}
public 
remove_hookid )
{
    if( 
task_existsid ) )
        
remove_taskid );
       
    
remove_beam(id);
    
g_bHookid ] = false;
}
public 
remove_beam(id)
{
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
    
write_byte99 );
    
write_shortid );
    
message_end( );
}
stock ColorMessage( const id, const input[ ], any:... )
{
    new 
iCount 1iPlayers32 ];
    static 
szMessage191 ];
    new 
iLen formatexszMessage190"^4[%s]^1 "g_szPrefix );
    
vformatszMessageiLen ], 190-iLeninput);
    if ( 
id iPlayers] = id;
    else 
get_playersiPlayers iCount "ch" );
   
    for ( new 
0iCounti++ )
    {
        if ( 
is_user_connectediPlayers] ) )
        {
            
message_beginMSG_ONE_UNRELIABLEget_user_msgid"SayText" ), _iPlayers] );
            
write_byteiPlayers] );
            
write_stringszMessage );
            
message_end( );
        }
    }

Supremache is offline
yousuf khan
Junior Member
Join Date: May 2019
Old 06-29-2020 , 09:58   Re: [REQ] BB_Hook
Reply With Quote #3

FATAL ERROR (shutting down): Mod_NumForName: sprites/zbb/hook.spr not found
yousuf khan is offline
yousuf khan
Junior Member
Join Date: May 2019
Old 06-29-2020 , 09:58   Re: [REQ] BB_Hook
Reply With Quote #4

Solve This Bro
yousuf khan is offline
Old 06-29-2020, 10:21
Supremache
This message has been deleted by Supremache.
Supremache
Senior Member
Join Date: Sep 2019
Old 06-29-2020 , 10:26   Re: [REQ] BB_Hook
Reply With Quote #5

Quote:
Originally Posted by yousuf khan View Post
Solve This Bro
Just add hook.spr to sprites file xD
I tried to upload it but website didn't support .spr files
Supremache is offline
yousuf khan
Junior Member
Join Date: May 2019
Old 06-29-2020 , 10:34   Re: [REQ] BB_Hook
Reply With Quote #6

Ok
yousuf khan 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 03:30.


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