Skip to content
View in the app

A better way to browse. Learn more.

Learn more

guard-authority-grant/README.txt

README.txt
40 lines · 1.9 KB · Text
Raw
Guard Authority Grant 1.0.0 (olds.ro)
=====================================

Jailbreak: when no admin (fewer than olds_gauth_minadmins) is on the guard
side, a chosen living guard is lent access flags for the round, so commands
such as the warden menu still work and the round can be run.

Requirements
  - AMX Mod X 1.10.0.5490 or newer, ReAPI, hamsandwich

Install
  1. Compile scripting/olds_gauth.sma and copy olds_gauth.amxx to
     addons/amxmodx/plugins/ (after admin.amxx in plugins.ini).
  2. Copy data/lang/olds_gauth.txt to addons/amxmodx/data/lang/.
  3. Give the warden menu (or other guard commands) the flag you lend.
  No downloads: the grant is announced in chat only.

Settings (addons/amxmodx/configs/plugins/olds_gauth.cfg, made on first run)
  olds_gauth_minadmins 1     admins needed on CT before nobody is granted
  olds_gauth_pick longest    longest (time on the server), score (frags) or
                             random
  olds_gauth_flags "b"       the flags lent to the guard
  olds_gauth_adminflag "d"   a player with any of these flags is an admin

Admins
  amx_gauth_status (ADMIN_KICK)   admins on CT, the holder, the lent flags and
                                  every player's team, flags and time

How it works
  - The check runs at round start (RG_CSGameRules_RestartRound) and shortly
    after a player leaves, dies or changes team (TeamInfo). If fewer than
    olds_gauth_minadmins admins are on CT, the chosen living CT gets the
    flags he did not already have (set_user_flags). With no living CT
    nobody is granted.
  - The lent flags (only those) are taken back with remove_user_flags at
    round end, when enough admins are on CT again, when the guard dies or
    stops being a guard (another guard is then chosen), and on map change.
    A holder who disconnects is replaced.
  - Every grant and removal goes to the AMX Mod X log with the player's
    name (and SteamID for grants).

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.