Garry's Mod Wiki

Revision Difference

Player:AddFrags#560262

<function name="AddFrags" parent="Player" type="classfunc"> <description>Add a certain amount to the player's frag count (or kills count)</description> <description>Adds the provided amount to the player's frag/kill count.</description> <realm>Server</realm> <args> <arg name="count" type="number">number of frags to add</arg>⤶ <arg name="count" type="number">The amount to add.</arg>⤶ </args> </function> <example> <description>Adds 2 frags to player</description> <code>Entity( 1 ):AddFrags( 2 )</code> <output>Player1 has 2 extra frags on the scoreboard relative to their old score.</output> </example>