Skip to content

KPR_fnc_hasRank

Christian edited this page Aug 22, 2018 · 2 revisions

Description

Checks if the given player has at least the given rank. Returns true if he has and false if the player hasn't or wasn't found.

Parameter(s)

  • 0: STRING - Steam UID of the player
  • 1: NUMBER - Rank to check (default: 0)

Returns

  • BOOL

Example

// Show you that "Testman" is a cool guy, if he's at least rank 10
{
    if (name player == "Testman") exitWith {
        if ([getPlayerUID _x, 10] call KPR_fnc_hasRank) then {
            hint "Man, Testman is a cool guy!";
        };
    };
} forEach (allPlayers - entities "HeadlessClient_F");
Clone this wiki locally