ze_happy_hours_vip_flags "abcd" Flags to give to all players in Happy Hours?
Natives:
ze_get_vip_flags(id) This will return player flags as a bitflag sum. id is player index.
ze_set_vip_flags(id, iFlags) Set player flags. id is player index and iFlags is flags to give as bitflag sum.
Commands:
say /vip OR say_team /vip Show Online VIPs and Contact Message.
say /vips OR say_team /vips Show Online VIPs and Contact Message.
say /getvip OR say_team /getvip Show Motd about VIP.
Examples & Instructions:
VIPs are set in ze_vips.ini in configs folder. There is flags and every flag give the player ability so default flags is:
a -- Connect Message and VIP List
b -- Multi-Jump
c -- Parachute
d -- Scoreboard Attrib.
Making VIPs Syntax: "Steam/Nick" "Password" "Flags"
Some Examples:
"STEAM_1:0:1442018137" "550" "abcd" - This VIP will get all flags and will be able to use all of them.
"Raheem" "EscapersZone" "ab" - This VIP will get only Connect Message and VIP List and Multi-Jump.
Player can set the password normally from setinfo same as normal admin.
ze_happy_hours_vip_flags "Flags" Will define when happy hours come what flags to be given for all players?
You can change all cvars easily from ze_vip.cfg
You need to install MultiJump and Parachute So that VIP system works correctly. Recommended Cvar:
ze_give_all_multijump 0
ze_give_all_parachute 0
Don't forget to edit motd file ze_vip.txt and set your information there.
Happy hours start and end time is depend on server time and server time depend on the machine which your server hosted on. Say thetime to get your server time inside the game.
Can you add discounts for VIP players when buying extra items?
ze_get_vip_flags(id) Use it same as you use get_user_flags() Find flags in ze_vip.inc you can also add more flags as you need. Flag z mean this is normal player not vip.
ze_set_vip_flags(id, iFlags) This native will set flags you give to player at the spawn and these flags will be removed at the end of the round. This not need password you can use in awards plugins and so on. iFlags is the flag in this format: VIP_A, VIP_B .... Some examples:
ze_set_vip_flags(id, VIP_A)This will set to the player Flag a only.
ze_set_vip_flags(id, VIP_A|VIP_B)This will set to player flags a and b.
ze_set_vip_flags(id, VIP_A|VIP_B|VIP_C|VIP_D)This will set to the players all the flags abcd
In set vip flags native we can make things easy and you can set player flags like:
ze_set_vip_flags(id, read_flags("a"))This will give player flag a
ze_set_vip_flags(id, read_flags("abc"))This will give the player flags abc the three flags.
Changelog:
Spoiler!
Version: 1.0
First Release.
Version: 1.1 [Current Version]
Added contact message and say /vip to show all online VIPs.
Added new motd for VIP say /getvip.
Added Parachute.
Added new two natives
Added New flags now used rather than old ones used in users.ini the new file is ze_vip.ini
Added new config file for VIP system ze_vip.cfg
Added support with name & steamid in VIP system.
Added cvar to know servers running our vip system: ze_vip_version
50% discount of the extra-item can be done in the specified items you need them to have discount for the VIP. Like after the player buy the item you may check if he is VIP then back him cost/2. Show me the item you need to add discount to it and i'll do it for you.
Raheem wrote: ↑6 years ago
50% discount of the extra-item can be done in the specified items you need them to have discount for the VIP. Like after the player buy the item you may check if he is VIP then back him cost/2. Show me the item you need to add discount to it and i'll do it for you.
It can be done instead in VIP's source file. It's better than keeping defining each item's cost for VIP & non-VIP players.
Use 'buy item post' forward and get the chosen item's cost & divide it on 2.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469