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

Vip free


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bulgaru
New Member
Join Date: Sep 2021
Old 09-21-2021 , 19:21   Vip free
Reply With Quote #1

Hello , sorry but i don t found this plugin i need vip free from server but i don t need event end and start this plugin , i need vip free for all day .

I want like this

PHP Code:
  #include <amxmodx>
#include <amxmisc>

new start,
stop,
minutes,
h,
m

new boolHaveVipBefore[33];

#define FLAGS "t"

public plugin_init()
{
    
register_plugin("VIP FREE""4.0""LOL")
    
    
start register_cvar"vip_start""20" );
    
stop register_cvar"vip_end""23" );
    
minutes register_cvar"vip_minutes""00" ); // nu modificati
    
    
set_task60.0"check"___"b" );
    
}

public 
client_putinserver(id)
{
    
check(id)
}
public 
check(id)
{
    
    
timehm);
    new 
flags read_flags(FLAGS)
    
    if(
>= get_pcvar_numstart ) && get_pcvar_numstop ))
    {        
        if(!(
get_user_flags(id) & flags ))
        {
            
set_user_flags(idflags)
            
server_cmd"amx_reloadadmins" );
            
HaveVipBefore[id] = false;
            }else{
            
HaveVipBefore[id] = true;
        }
        if(
== get_pcvar_numstart ) && == get_pcvar_numminutes ))
        {
            
ColorChat(0"!g***** !tFREE VIP EVENT STARTED !g*****")
            
log_amx("***** FREE VIP EVENT STARTED *****")
        }
        
        
set_hudmessage(random(256), random(256), random(256),0.020.21_59.0__, -1)
        
show_hudmessage(0"** FREE VIP EVENT ACTIVE **")
    }
    else if(
get_pcvar_numstart ) || >= get_pcvar_numstop ))
    {
        if (!(
HaveVipBefore[id]))
        {
            
remove_user_flags(idflags);
            
server_cmd"amx_reloadadmins" );
        }
        if(
== get_pcvar_numstop ) && == get_pcvar_numminutes ))
        {
            
ColorChat(0"!g***** !tFREE VIP EVENT ENDED !g*****")
            
log_amx("***** FREE VIP EVENT ENDED *****")
        }
    }
}

stock ColorChat(const id, const input[], any:...) {
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^4");
    
replace_all(msg190"!n""^1");
    
replace_all(msg190"!t""^3");
    
    if(
idplayers[0] = id;
    else 
get_players(playerscount"ch"); {
        for(new 
0counti++) {
            if(
is_user_connected(players[i])) {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

I want it to appear at the top left or right, it doesn't matter if the free vip appears and it doesn't have an event like it starts at x I want it to be without event, to be all day, night, etc.

Last edited by Bulgaru; 09-22-2021 at 02:08.
Bulgaru is offline
Bulgaru
New Member
Join Date: Sep 2021
Old 09-23-2021 , 08:38   Re: Vip free
Reply With Quote #2

Up!
Bulgaru is offline
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 16:01.


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