Garry's Mod Wiki

Revision Difference

Player:AddFrags#515870

<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</description>⤶ <code>Entity( 1 ):AddFrags( 2 )</code>⤶ <output>Player1 has 2 extra frags on the scoreboard relative to his old score.</output>⤶ ⤶ </example>⤶ {{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.}}