AMXX quickstart
Display an animated kill-card preview from a server plugin.
Requirements
Use Counter-Strike 1.6, AMX Mod X with Fakemeta, and a compatible Papamo managed session. The game must run the approved PAPAMOVGUI2-capable native bundle. A stock client, a browser client or a client that has not opted in will not display these cards.
Partner card messages require an assigned-server managed session, enabled in-game enhancements and enabled kill cards. They do not activate the 1.6 Competitive scoreboard on your server.
Install the include
Download papamovgui2.inc and place it in your compiler's scripting/include/ directory. The partner server package also includes it.
Compile a preview plugin
This deliberately displays a three-card preview, not a real kill count. It does not update game statistics.
#include <amxmodx>
#include <papamovgui2>
public plugin_init() {
register_plugin("PAPAMOVGUI2 preview", "1.0", "Your platform");
papamovgui2_init();
register_clcmd("say /cards", "preview_cards");
}
public preview_cards(id) {
if (!papamovgui2_available(id)) {
client_print(id, print_chat, "This preview needs a compatible managed client.");
return PLUGIN_HANDLED;
}
// id, count, CT colors, FFA, ace position, grenade bitmask, lifetime
papamovgui2_kill_cards(id, 3, true, false, 0, 4, 3);
return PLUGIN_HANDLED;
}After connecting through the managed launcher, allow up to two seconds for the capability handshake. Type /cards in chat. The third card uses grenade artwork; the other two use skulls. The snapshot expires after three seconds.
Connect actual gameplay events
Maintain your own confirmed per-life or per-round count. Call papamovgui2_reset(id) when your rules start a new life/round. Call papamovgui2_kill_cards when its presentation changes, and refresh it before its lifetime expires if it should remain visible.
One plugin should own the card component for a player. Competing writers replace the same component.
Understand availability
papamovgui2_available indicates a recent capability handshake for the current connection user ID. It is not an anti-cheat verdict or a delivery acknowledgement. Clients can falsify handshakes. Never use it for ranks, entitlements or trust decisions.
Enable automatic kill sprees
Follow Enable kill sprees for a downloadable gameplay-driven plugin, team/FFA settings, reset rules and deployment checks.