Raised This Month: $85 Target: $400
 21% 

[CS] [REQ] Plugin VIP Event FIX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
G0dFulL.
Junior Member
Join Date: Jun 2020
Location: Romania
Old 07-02-2020 , 07:24   [CS] [REQ] Plugin VIP Event FIX
Reply With Quote #1

Can make this plugin work for cs:go?
PHP Code:
#include < amxmodx >
#include < engine >
#include < hamsandwich >

#define VIP_FLAG ADMIN_LEVEL_H

new g_iCvars];

new 
bool:g_bFreeVipTime;

public 
plugin_init( )
{
    
register_plugin"Free VIP""1.0""DoNii" );

    
register_event"HLTV""OnNewRound""a""1=0""2=0" );
    
    
g_iCvars] = register_cvar"free_vip_on""1" );
    
g_iCvars] = register_cvar"free_vip_start_time""22" );
    
g_iCvars] = register_cvar"free_vip_end_time""10" );
}

public 
plugin_natives( )
{
    
register_library"free_vip" );
    
register_native"is_free_vip_time""native_is_free_vip_time");
}

public 
client_PostThinkid )
{
    if( 
g_bFreeVipTime )
    {
        
set_user_flagsidVIP_FLAG );
    }
}

public 
OnNewRound( )
{
    if( ! 
get_pcvar_numg_iCvars] ) )
    return 
PLUGIN_CONTINUE;

    if( 
IsVipHourget_pcvar_numg_iCvars] ), get_pcvar_numg_iCvars] ) ) )
    
g_bFreeVipTime true;
    
    else
    
g_bFreeVipTime false;
    
    return 
PLUGIN_CONTINUE;
}

public 
native_is_free_vip_timeiPluginiParams )
{
    return 
g_bFreeVipTime;
}

bool:IsVipHouriStartiEnd )
{
    new 
iHourtimeiHour );
    return 
bool:( iStart iEnd ? ( iStart <= iHour iEnd ) : ( iStart <= iHour || iHour iEnd ) )

__________________
My Discord: G0dFulL#4405 | My Community
G0dFulL. is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 07-02-2020 , 07:39   Re: [CS] [REQ] Plugin VIP Event FIX
Reply With Quote #2

This plugin https://forums.alliedmods.net/showthread.php?p=2675717 has the feature you are looking for...
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF 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 19:40.


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