Skip to content

KPR_fnc_addScore

Christian edited this page Aug 21, 2018 · 2 revisions

Description

Changes the score of a given player. Returns true on success and false if the player wasn't found.

Parameter(s)

  • 0: STRING - Steam UID of the player
  • 1: NUMBER - Amount of points to add to the player score. Can be negative to substract. (default: 0)

Returns

  • BOOL

Example

// Add 100 points to the score of the executing player
[getPlayerUID player, 100] call KPR_fnc_addScore;

// Substract 250 points from the score of each human player
{
    [getPlayerUID _x, -250] call KPR_fnc_addScore;
} forEach (allPlayers - entities "HeadlessClient_F");
Clone this wiki locally