AMXX API reference
Typed .inc interfaces, validated limits and transport behavior.
Downloads
- papamovgui2.inc: animated card presentation.
- papamovgui2_scoreboard.inc: custom native scoreboards.
- papamo_cosmetics.inc: selection of staged, verified cosmetic recipes.
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);| Argument | Meaning |
|---|---|
id | Connected player slot, 1–32 |
count | 0–5 competitive cards or 0–16 FFA cards |
ct | Blue card palette; false uses the gold palette |
ffa | Enables the larger card stack |
ace | 0 for none, otherwise a card position 1–5, no greater than count; competitive only |
grenadeMask | Unsigned 16-bit mask; bit 0 describes card 1. Bits above count must be zero |
seconds | Snapshot 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:
| Offset | Size | Value |
|---|---|---|
| 0 | 1 | Version: 1 |
| 1 | 1 | Component: 1, kill cards |
| 2 | 2 | Little-endian epoch |
| 4 | 1 | Card count |
| 5 | 1 | Flags: bit 0 FFA, bit 1 CT |
| 6 | 1 | Ace position |
| 7 | 2 | Little-endian grenade mask |
| 9 | 1 | Lifetime 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.