Skip to content

KPR_fnc_getScore

Christian edited this page Aug 22, 2018 · 1 revision

Description

Gets the current score of a given player. Identified by the Steam UID. Returns the current score 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

// Collect all names of players with a score below 1000 in an array
private _noobies = [];
{
    if ([getPlayerUID _x] call KPR_fnc_getScore < 1000) then {
        _noobies pushBack (name _x);
    };
} forEach (allPlayers - entities "HeadlessClient_F");
Clone this wiki locally