Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include amxmodx
- #include amxmisc
- #define VIP_FLAGS "bit"
- const s = 7; // Aici setati ora la care sa porneasca
- const e = 12; // Aici setati ora la care sa se termine
- 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);
- }
Add Comment
Please, Sign In to add comment