This plugin opens a simple menu when you respawn after death with a choice of weapons that are available to you as a VIP player.
It reads from the ini file the list of available weapons for a specific steam ID
After the first launch, it creates a file with the following content:
addons/amxmodx/configs/ck_custom_equip.ini
PHP Code:
STEAM_0:1:168151617 weapon_enfield weapon_sten
I can make the plugin work in two modes:
classic is when your current weapon falls out of your hands and a new one comes out.
and secondary is when two primary weapons are placed in 1 slot. it's like having two rifles.
___________
The plugin was created at the request of the administrator. However, before continuing my work, I want to ask the professionals.
Each time it spawns, the plugin again accesses the text file and processes it. It's fast and easy when I test it on a home server. but when such a function is repeated every respawn for 32 players, I suspect it will be difficult.
Can we translate a list of weapons into bitmasks.
or does it make sense to create a multidimensional text array for each player and parse the data into it, and then process it from the RAM?