{"name":"addPlayerScores","title":"addPlayerScores","type":"command","url":"https://community.bistudio.com/wiki/addPlayerScores","revid":376997,"updated":"2026-01-01T08:05:12Z","groups":["Object Manipulation","Multiplayer"],"status":"ok","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","locality":{"server_exec":true},"description":"MP server only: Adds player score.\n\n|  |  |  |  |  |  |\n|---|---|---|---|---|---|\n| Kill Type | infantry | soft | armor | air | killed |\n| Score Points | 1 | 2 | 3 | 5 | -1 |","syntaxes":[{"syntax":"unit addPlayerScores values","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"values","type":"Array with [killsInfantry, killsSoft, killsArmor, killsAir, score]","description":"Array with [killsInfantry, killsSoft, killsArmor, killsAir, score]\n\n- killsInfantry: Number - number of infantry units killed\n- killsSoft: Number - number of soft vehicles killed\n- killsArmor: Number - number of armored vehicles killed\n- killsAir: Number - number of air vehicles killed\n- score: Number - total score","type_expr":"Array","text":"values: Array with [killsInfantry, killsSoft, killsArmor, killsAir, score]\n\n- killsInfantry: Number - number of infantry units killed\n- killsSoft: Number - number of soft vehicles killed\n- killsArmor: Number - number of armored vehicles killed\n- killsAir: Number - number of air vehicles killed\n- score: Number - total score"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"values"}}],"examples":[{"code":["player addPlayerScores [0, 1, 0, 0, 1];"]}],"see_also":["addScore","addScoreSide","getPlayerScores","score","scoreSide"],"notes":[{"user":"Beno 83au","date":"2017-05-02T01:48:00Z","text":"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.\nSo to counter this just add 2 points every time a player kills a unit from the same side:\n\n```sqf\nplayer addPlayerScores [2, 0, 0, 0, 0];\n```\n\nThe 2 points will add 1 point to counter the negative friendly-fire point and 1 point to add correctly to the score."}]}