CAC_GetServerVersion

Description

Gets the AC version of the server plugin.

Definition

native CAC_GetServerVersion(&major, &minor, &patch);

Parameters

Return values

Example usage

public OnGameModeInit()
{
    new major, minor, patch;
    if(CAC_GetServerVersion(major, minor, patch) == 1)
    {
        printf("This server is using SAMPCAC v%i.%02i.%i", major, minor, patch);
    }
    return 1;
}

Remarks

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