SlashCo Wiki

Player:AddRoundPoints

  Player:AddRoundPoints( string key, number amount )

Description

Adds a round point entry to the player under the given key, contributing to their total score shown at the end of the round.
Multiple calls with the same key stack instead of replacing each other. On the server, the added points are networked to the player.

Arguments

1string key

Round point category, e.g. slasher_kill or objective. Determines the default amount when it is omitted.

2number amount

The amount of points to add. Defaults to a value based on key (or 5 if key is unknown).