Skip to content

KPR_fnc_getRank

Christian edited this page Aug 21, 2018 · 1 revision

Description

Gets the current rank of a given player. Identified by the Steam UID. Returns the current rank as number. If the Steam UID wasn't found it returns -1.

Parameter(s)

  • 0: STRING - Steam UID of the player (default: uid of current player)

Returns

  • NUMBER

Example

// Get the rank number of the executing player (-1 - 19)
private _rank = [] call KPR_fnc_getRank;

// Collect the player names of all player with a rank > 10
private _myFancyElite = [];
{
    if ([getPlayerUID _x] call KPR_fnc_getRank > 10) then {
        _myFancyElite pushBack (name _x);
    };
} forEach (allPlayers - entities "HeadlessClient_F");
Clone this wiki locally