Page 1 of 1

Use Button Once

Posted: Mon Nov 22, 2021 5:10 pm
by greenie
Use Button Once
v1.3
usage of buttons (dedicated for DeathRun)

Project started as plugin, which default allow to only once per round use each button. Now it may define number of uses to all buttons, egzamples in .zip. From 1.1 you have a menu:
amx_buttons
WARNING: After option "Go To" you should use No Clip to make. I suppose it could be done in code, but when it allow No Clip why make it more complicated

Ideas and tests(v1.0) is ZBAGI
Ideas and tests(from w v1.2) is Jazio

> v1.2 include FreeRun! When in voting more players choose Yes than No this mode starts - terrorist can`t use traps. Vote starts after use
say /free
> v1.3 plugin have delay editor and restore buttons option

Cvars with default values

amx_buttons_default 1
Default count of uses


amx_buttons_team 1
Who plugin analyze
0 - anyone(plugin disabled?)
1 - Te
2 - Ct
3 - Te+Ct


amx_buttons_freerun 1
Enabled FreeRun mode? 0|1


amx_freerun_votetime 10
Vote time


amx_freerun_limit_mode 0
Type of limit
0 - enabled after 'amx_freerun_limit' rounds
1 - enabled after 'amx_freerun_limit' minutes


amx_freerun_limit 5
Size of Limit, depend on type

amx_freerun_info 120
interval of information, value lower than 0 will remove chat info


amx_freerun_tt_privilege 1
Terrorist`s privilege
if he use /free FreeRun will start without vote, can he? 0|1
amx_restore_buttons 1
on start round make buttons enabled to use (when used in last round very late) 0|1


Menus help
Main menu
1 - increase limit uses of button
2 - decrease limit uses of button

3 - Open Delay Editor menu
4 - Options menu

5 - No Clip - On/Off free move&no gravity
6 - GodMode - On/Off be immortal

7 - save setting to file

8,9 - go to previous, next button
0 - exit

Options menu
1. move to button position, after use No Clip
2. menu will set to button, which is the nearest owner of menu
9. back tu main menu

Delay Editor menu
1. increase delay
2. decrease delay
3. return default delay (from mapper`s set)
9. back tu main menu

Thx xPaw for report entities class issue

plugin
source