CAC_PlayerSetGlitchSettings

Description

Sets glitch settings per-player.

Definition

native CAC_PlayerSetGlitchSettings(player_id, glitch_id, status);

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:disable_cbug_except_me(player_id, params[])
{
    CAC_PlayerSetGlitchSettings(player_id, CAC_GLITCH__CROUCHBUG, true);
    // I can "C-Bug"

    CAC_SetGlitchStatus(CAC_GLITCH__CROUCHBUG, false);
    // however, this call disables "C-Bug" for all clients, including myself
    // so "C-Bug" won't work for me now

    CAC_PlayerSetGlitchSettings(player_id, CAC_GLITCH__CROUCHBUG, true);
    // revert back to old settings for "C-Bug"
    // now I can "C-Bug", while others can't

    return 1;
}

Remarks