-
-
Notifications
You must be signed in to change notification settings - Fork 7
KPR_fnc_addScore
Christian edited this page Aug 21, 2018
·
2 revisions
Changes the score of a given player. Returns true on success and false if the player wasn't found.
- 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)
- BOOL
// 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");