[Escapers-Zone] VIP System

Moderators: Moderatori ajutători, Moderatori

Post Reply
User avatar
[M]Maasym.
Fondator TheXFoRce
Fondator TheXFoRce
Posts: 68
Joined: Sun May 01, 2022 11:24 pm
Status:
Detinator Steam: Da
Gaming experience: Nu spun..

[Escapers-Zone] VIP System

Post by [M]Maasym. »

VIP System
Description:
VIP system for our Zombie Escape Mod, With this plugin you can make VIPs. This system now have:
MultiJump
Parachute
Free Hours - Time All players will became VIPs
Connect & Contact Messages
Scoreboard Tag
Multiply Weapons Damage

Cvars:

Code: Select all

ze_connect_message 1 Show chat notice Message When VIP Connected? 1 = Show | 0 = Don't Show
ze_admin_contact "Admin Name" Add your name or any contact method. To disable this change "Admin Name" to ""
ze_give_vip_multijump 1 Enable or Disable MultiJump for VIPs? 1 = Enable | 0 = Disable
ze_show_vip_scoreboard 1 Show VIP in the Score Board? 1 = Show | 0 = Don't Show
ze_give_vip_parachute 1 Enable or Disable Parachute for VIPs? 1 = Enable | 0 = Disable
ze_enable_happy_hours 1 Enable or Disable Happy Hours? 1 = Enable | 0 = Disable
ze_vip_happy_hours "9-12" Happy hours: Start-End
ze_happy_hours_vip_flags "abcde" Flags to give to all players in Happy Hours?
ze_vip_multiply_damage 1.2 Multiply VIP damage by this factor. 0 = Disabled
Natives (API):

Code: Select all

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 the player index and iFlags is flags to give as bitflag sum.
ze_is_user_vip(id) Check if user VIP or not. id is the player index.
Commands:

Code: Select all

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:

Code: Select all

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.
e -- VIP Damage
Making VIPs Syntax: "Steam/Nick" "Password" "Flags" "ExpireDate"
Some Examples:
"STEAM_1:0:1442018137" "550" "abcde" "11-09-2018" - This VIP will get all flags and will be able to use all of them. Also will be removed at the expire date defined.
"Raheem" "EscapersZone" "ab" "0" - This VIP will get only Connect Message and VIP List and Multi-Jump. This VIP will not expire will never automatically removed.
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.
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.
You can change flags from code and recompile the plugin:
CODE: SELECT ALL

#define VIP_MESSAGES    VIP_A
#define MULTIJUMP	VIP_B
#define PARACHUTE	VIP_C
#define SCOREBOARD	VIP_D
#define DAMAGE		VIP_E
#define NON_VIP		VIP_Z
Comment #define MULTIJUMP or #define PARACHUTE or both, so in this case you will not need to install these plugins so VIP plugin run correctly.
At expire date, the VIP will automatically removed from the ze_vips.ini file. If you set expire date to 0 then it will never expire.
Expire date format: day-month-year, Examples: 09-09-2019 or 9-9-2019 both valid.
If you need to set happy hours start at 9 and end at 11 then: ze_vip_happy_hours "9-11"
You can change motd using this online HTML editor: [url]https://www.quackit.com/html/online-html-editor/full/[/url]
Changelog:

Code: Select all

Image
First Release.

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

Fixed vips online list.
Fixed flags order, this will fix all Happy Hours problems.
Added ability to disable parachute/multijump from definations in code, so you will not need to run these plugins so VIP plugin works.
Fixed some code problems, updated code style.
Edited including method.
Some optimization by jack.
Added description for functions, check Natives API.
Image [Current Version]
Added option to set expire date to automatically remove VIPs at this date.
Added multiple damage by x factor for VIPs on specific flag.
Combined happy hours start and end cvars in one cvar.
Used new file system function (fopen, fgets ...) whenever it's possible.
Fixed some problems in ze_get_vip_flags() native.
Updated motd with good style and new things.
Added new native to check if user VIP or not ze_is_user_vip().

Link Download:
Post Reply

Return to “GamePlay”