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

Suggestion / Subplugin Request [REQ] HHV with RZ VIP ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
swarmachine
Member
Join Date: Aug 2015
Location: {Baltic States}
Old 01-21-2017 , 13:16   [REQ] HHV with RZ VIP ?
Reply With Quote #1

What code must be to complete working happy hours (vip) plugin;
i m using on server RZ VIP and RZ VIP configuration saying what for vip needs to be set flag "t"
idea is from happy hour : double exp A-P ...
__________________
BROTHER , IT'S BEEN TOO LONG !
swarmachine is offline
Send a message via Skype™ to swarmachine
swarmachine
Member
Join Date: Aug 2015
Location: {Baltic States}
Old 01-25-2017 , 13:31   Re: [REQ] HHV with RZ VIP ?
Reply With Quote #2

Still need help.
__________________
BROTHER , IT'S BEEN TOO LONG !
swarmachine is offline
Send a message via Skype™ to swarmachine
swarmachine
Member
Join Date: Aug 2015
Location: {Baltic States}
Old 02-03-2017 , 11:07   Re: [REQ] HHV with RZ VIP ?
Reply With Quote #3

yeah so! After some weeks research ,and no ones replay , a bit i find this code ...
i edit some lines ...
Code:
#include <amxmodx> 
#include <hamsandwich> 

#define PLUGIN "Free VIP fo RZVIP?" 
#define VERSION "edited" 
#define AUTHOR "edited?" 

new g_FreeVip[33]; 
new g_Time_1, g_Time_2 

public plugin_init() 
{ 
    register_plugin(PLUGIN, VERSION, AUTHOR) 
     
    g_Time_1 = register_cvar("free_vip_time_from", "20") 
    g_Time_2 = register_cvar("free_vip_time_to", "09") 
     
    RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1) 
     
    register_dictionary("free_vip.txt"); 
} 

public fwHamPlayerSpawnPost(id) 
{ 
    new szTime[3] 
    get_time("%H",szTime,2) 
     
    new Time_1 = get_pcvar_num(g_Time_1) 
    new Time_2 = get_pcvar_num(g_Time_2) 
     
    new iTime = str_to_num(szTime) 
else if( 20 <= iTime <= 20 ) 
    { 
        if( !(get_user_flags(id) & ADMIN_RESERVATION) ) 
        { 
            remove_user_flags(id, ADMIN_USER); 
            set_user_flags(id, ADMIN_LEVEL_T); 
            g_FreeVip[id] = true; 
            set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 ); 
            show_hudmessage ( id, "You get FREE VIP from %d:00 to %d:00!", Time_1, Time_2)   
        } 
    } 
    if( 11 <= iTime <= 11 )  
    { 
        if( !(get_user_flags(id) & ADMIN_RESERVATION) ) 
        { 
            remove_user_flags(id, ADMIN_USER); 
            set_user_flags(id, ADMIN_LEVEL_T); 
            g_FreeVip[id] = true; 
            set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 ); 
            show_hudmessage ( id, "%L", id, "FREE_VIP", Time_1, Time_2) 
        } 
    } 
    else if( g_FreeVip[id] ) 
    { 
        remove_user_flags(id, ADMIN_LEVEL_T); 
        set_user_flags(id, ADMIN_USER); 
        g_FreeVip[id] = false; 
    } 
}  



is it will be working with RzVip?
i know i can use instead of rz vip USE THIS but still trying to find way
__________________
BROTHER , IT'S BEEN TOO LONG !
swarmachine is offline
Send a message via Skype™ to swarmachine
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 05:58.


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