---
name: "addPlayerScores"
type: command
status: ok
groups: ["Object Manipulation", "Multiplayer"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/addPlayerScores
revid: 376997
updated: 2026-01-01T08:05:12Z
---

# addPlayerScores

*Command · Object Manipulation, Multiplayer · Arma 3 v1.62*

Locality: **server execution only**

## Description

MP server only: Adds player score.

|  |  |  |  |  |  |
|---|---|---|---|---|---|
| Kill Type | infantry | soft | armor | air | killed |
| Score Points | 1 | 2 | 3 | 5 | -1 |

## Syntax

```sqf
unit addPlayerScores values
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `values`: [Array](../topics/Array.md) with [killsInfantry, killsSoft, killsArmor, killsAir, score]
  - killsInfantry: [Number](../topics/Number.md) - number of infantry units killed
  - killsSoft: [Number](../topics/Number.md) - number of soft vehicles killed
  - killsArmor: [Number](../topics/Number.md) - number of armored vehicles killed
  - killsAir: [Number](../topics/Number.md) - number of air vehicles killed
  - score: [Number](../topics/Number.md) - total score

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player addPlayerScores [0, 1, 0, 0, 1];
```

## See also

[addScore](../commands/addScore.md) · [addScoreSide](../commands/addScoreSide.md) · [getPlayerScores](../commands/getPlayerScores.md) · [score](../commands/score.md) · [scoreSide](../commands/scoreSide.md)

## Community notes

**Beno 83au** — 2017-05-02

As this command will add the given number to a player's score, a little bit of thought needs to be given to friendly-fire if it is for something like a deathmatch or a FFA, due to friendly-fire incurring negative points.
So to counter this just add 2 points every time a player kills a unit from the same side:

```sqf
player addPlayerScores [2, 0, 0, 0, 0];
```

The 2 points will add 1 point to counter the negative friendly-fire point and 1 point to add correctly to the score.

<sub>Source: [BI Community Wiki — addPlayerScores](https://community.bistudio.com/wiki/addPlayerScores) (revision 376997).</sub>
