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

Plugin Event VIP FREE [UPDATE - V4.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
FonixPro20
Member
Join Date: Mar 2018
Old 06-27-2018 , 07:51   Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #1

Hello All,

Plugin Event VIP FREE [UPDATE - V4.0]

Time 20 - 23 Change It If You Want .

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();
            }
        }
    }

Thanks All .
Attached Files
File Type: sma Get Plugin or Get Source (Event_VIP_FREE.sma - 4678 views - 2.0 KB)

Last edited by FonixPro20; 09-28-2018 at 20:51.
FonixPro20 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-27-2018 , 08:13   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #2

Or just use something that's more efficient? https://forums.alliedmods.net/showpo...48&postcount=5
__________________
edon1337 is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 06-27-2018 , 08:39   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #3

hmm nice that plugin i am looking for because my b'day is comming so i think to give flag too every player ty bro
__________________
SED LYF !!!
SHIELD755 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-27-2018 , 09:56   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #4

Version 4.0 and the code is still terible.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 06-27-2018 , 12:29   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #5

Hii ocixcrom
__________________
SED LYF !!!
SHIELD755 is offline
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 07-07-2018 , 04:43   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #6

Code:
 register_plugin("VIP FREE", "4.0", "Fonix")
https://www.extreamcs.com/forum/amxm...e-t292522.html
__________________
LondoN is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 07-12-2018 , 05:00   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #7

la naiba!!!
What a coincidence.
__________________
Relaxing is offline
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 07-13-2018 , 08:02   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #8

Quote:
Originally Posted by Relaxing View Post
la naiba!!!
What a coincidence.

Hahaha this is PURE Gold, You sir deserve a cookie.
Visinescu is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-19-2018 , 09:12   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #9

Are you LOLpgl? Can you support this plugin?
What is the reason to have a cvar if the value shouldn't be changed?
__________________
HamletEagle is offline
FonixPro20
Member
Join Date: Mar 2018
Old 08-31-2019 , 10:25   Re: Plugin Event VIP FREE [UPDATE - V4.0]
Reply With Quote #10

Quote:
Originally Posted by LondoN View Post
Code:
 register_plugin("VIP FREE", "4.0", "LOL")
https://www.extreamcs.com/forum/amxm...e-t292522.html
FonixPro20 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 10:34.


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