CAC_GetGameResourceReportType

Description

Gets the reporting policy for game modifications. (previously set with CAC_SetGameResourceReportType)

Definition

native CAC_GetGameResourceReportType();

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:mods_report_status(player_id, params[])
{
    new report_type = CAC_GetGameResourceReportType();
    switch(report_type)
    {
        case CAC_GAMERESOURCE_REPORTTYPE__DISABLED:
            SendClientMessage(player_id, -1, "Mod reporting is disabled.");
        case CAC_GAMERESOURCE_REPORTTYPE__ONLY_IF_MODDED:
            SendClientMessage(player_id, -1, "Reports only mod state with no additional info.");
        case CAC_GAMERESOURCE_REPORTTYPE__FULL:
            SendClientMessage(player_id, -1, "Reports all mods found with full info."); 
    }
    return 1;
}

Remarks