Jump to content

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...