Skip to content
View in the app

A better way to browse. Learn more.

Learn more

access-control-library/addons/amxmodx/scripting/include/olds_acl.inc

olds_acl.inc
37 lines · 1.1 KB · Pawn include
Raw
// Access Control Library (olds.ro) - include for plugins that use it.
// GPL-3.0-or-later. Library "olds_acl" (olds_acl.amxx must load before your plugin).

#if defined _olds_acl_included
    #endinput
#endif
#define _olds_acl_included

#pragma reqlib "olds_acl"
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib "olds_acl"
#endif

/**
 * True when the player holds a flag mapped to the right in configs/olds_acl.ini
 * (for example "kick", "ban"). An unknown right returns false and is logged once.
 * The server console (id 0) has every right.
 */
native acl_has_access(id, const right[])

/**
 * The player's rank: the highest "level N = flags" line whose flags they all hold,
 * or, with no levels in the file, the number of admin flags a-u they hold.
 */
native acl_get_level(id)

/**
 * False when target holds an immunity flag (olds_acl_default_immunity) and admin
 * does not outrank them. Acting on yourself, or from the server console (0), is allowed.
 */
native acl_can_target(admin, target)

/**
 * Called when a player's flags were (re)read after they authorized or joined, and
 * for everyone after amx_acl_reload.
 */
forward acl_changed(id)

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.