Raised This Month: $12 Target: $400
 3% 

Hook Only Build-Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 16:07   Hook Only Build-Time
Reply With Quote #1

Hello, i searching plugin or code for adding only the Hook only during build-time for CT and Terro the build-time during 150sec he is on my basebuilder servar
I want this only for vip like flags if u can add "T"
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-25-2020 at 16:07.
Ace67 is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 12-25-2020 , 16:14   Re: Hook Only Build-Time
Reply With Quote #2

https://forums.alliedmods.net/showpo...85&postcount=2
amirwolf is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 16:15   Re: Hook Only Build-Time
Reply With Quote #3

Quote:
Originally Posted by amirwolf View Post
this plugin he is only for ct i want too for terrorist team
if i dont said error
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-25-2020 at 16:16.
Ace67 is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 12-25-2020 , 16:22   Re: Hook Only Build-Time
Reply With Quote #4

Replace
PHP Code:
public hook_onid )
{
    if ( !(
get_user_flagsid ) & ADMIN_LEVEL_H) && !IsBuildPhase( ) )
    {
        
ColorMessageid"Only^3 VIP^1 can use hook after build phase." );
        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;

amirwolf is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 16:27   Re: Hook Only Build-Time
Reply With Quote #5

Quote:
Originally Posted by amirwolf View Post
Replace
PHP Code:
public hook_onid )
{
    if ( !(
get_user_flagsid ) & ADMIN_LEVEL_H) && !IsBuildPhase( ) )
    {
        
ColorMessageid"Only^3 VIP^1 can use hook after build phase." );
        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;

I dont want this i want VIP can use only during the build-time team ct and terrorist please
i have bb 5.4 when i add the plugin for test
Plugin "hookvip.amxx" failed to load: Plugin uses an unknown function (name "bb_is_build_phase") - check your modules.ini.
__________________
CS:CZ > CS 1.6
Ace67 is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 12-25-2020 , 16:35   Re: Hook Only Build-Time
Reply With Quote #6

It does exactly what you are looking for
I do not receive any errors Works without any problems in 6.5 mode
amirwolf is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 16:36   Re: Hook Only Build-Time
Reply With Quote #7

Quote:
Originally Posted by amirwolf View Post
It does exactly what you are looking for
I do not receive any errors Works without any problems in 6.5 mode
yeah, i know u understand i want this for the version 5.4 i have servar bb all works i just need this for vip because vip can abusive hooks
__________________
CS:CZ > CS 1.6
Ace67 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 11:53.


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