Skip to Content
PAPAMO / DOCS
PAPAMOVGUI2

AMXX API reference

Typed .inc interfaces, validated limits and transport behavior.

Downloads

Include files use AMXX stocks and Fakemeta; no additional AMXX binary module is required. They still require the matching native client implementation. The cosmetic selector's prerequisites are described in runtime viewmodels.

papamovgui2_init

papamovgui2_init();

Call once from plugin_init. Registers the fixed 16CVGUI user message and the versioned client capability command.

papamovgui2_available

bool:papamovgui2_available(id);

Returns true for a connected player slot with a matching current connection user ID and a handshake less than four seconds old. The native client renews its handshake about every two seconds while authorized.

papamovgui2_kill_cards

bool:papamovgui2_kill_cards(id, count,
    bool:ct = false, bool:ffa = false,
    ace = 0, grenadeMask = 0, seconds = 3);
ArgumentMeaning
idConnected player slot, 1–32
count0–5 competitive cards or 0–16 FFA cards
ctBlue card palette; false uses the gold palette
ffaEnables the larger card stack
ace0 for none, otherwise a card position 1–5, no greater than count; competitive only
grenadeMaskUnsigned 16-bit mask; bit 0 describes card 1. Bits above count must be zero
secondsSnapshot lifetime, 1–10 seconds; defaults to 3

Returns false for invalid arguments or unavailable clients. True means a snapshot was queued, not that it was painted. Refresh snapshots before their lifetime expires. Repeating an identical snapshot renews visibility without restarting the animation.

papamovgui2_reset

bool:papamovgui2_reset(id);

Advances the connection's animation epoch and sends a zero-card snapshot. Use for round/life resets. The 16-bit epoch wraps; it identifies transitions, not global ordering or authority.

Wire format

16CVGUI v1 is exactly ten bytes, in this order:

OffsetSizeValue
01Version: 1
11Component: 1, kill cards
22Little-endian epoch
41Card count
51Flags: bit 0 FFA, bit 1 CT
61Ace position
72Little-endian grenade mask
91Lifetime in seconds

Unknown versions/components/flags, malformed lengths and out-of-range values are rejected. Messages carry no paths, scripts, account tokens or download URLs. Platform matches use their authenticated scoreboard state; partner snapshots are enabled only by the managed partner-session path.