Garry's Mod Wiki

Revision Difference

Player:AddFrags#512642

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