Garry's Mod Wiki

Player:AddFrags

  Player:AddFrags( number count )

Description

Adds the provided amount to the player's frag/kill count.

Arguments

1 number count
The amount to add.

Example

Adds 2 frags to player

Entity( 1 ):AddFrags( 2 )
Output: Player1 has 2 extra frags on the scoreboard relative to their old score.