CAC_GetClientVersion

Description

Gets the AC version of a player.

Definition

native CAC_GetClientVersion(player_id, &major, &minor, &patch);

Parameters

Return values

Example usage

public OnPlayerConnect(playerid)
{
    new major, minor, patch, buf[64];
    if(CAC_GetClientVersion(playerid, major, minor, patch) == 1)
    {
        format(buf, sizeof(buf), "You are using SAMPCAC v%i.%02i.%i", major, minor, patch);
        SendClientMessage(playerid, -1, buf);
    }
    return 1;
}

Remarks

SAMPCAC versioning respects the following format: AA.BB.CC, where: