Jump to content
ExTazZy   Vania

Vip de noapte

Recommended Posts

#include amxmodx
#include amxmisc
 
#define VIP_FLAGS "bit"
 
const s = 20;
const e = 8;
 
public client_putinserver(id) {
    if(!is_user_bot(id) || !is_user_hltv(id))
        check(id);
    return PLUGIN_CONTINUE;
}
 
public check(id) {
    if(!is_user_connected(id))
        return;
 
    new h;
    new flags = read_flags(VIP_FLAGS);
 
    time(h, _, _);
 
    if(h >= s && h <= e)
    {
        if(!(get_user_flags(id) & flags))
            set_user_flags(id, flags);
    }
 
    else if(h < s || h >= e)
        set_user_flags(id, read_flags("z"));
 
    set_hudmessage(0, 127, 255, 0.02, 0.2, 1, _, 59.0, _, _, -1);
    ShowSyncHudMsg(0, CreateHudSyncObj(), "Event VIP FREE: %s", (h >= s && h <= e) ? "ON" : "OFF");
 
    set_task(60.0, "check", id);
}











PUTETI CINEVA SA MIL SETATI ASA SI SAMI DATI SMA 
Lam pus asa simi scrie OFF  nustiu dece

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×