Player.AddFrags

From GMod Wiki

Revision as of 22:28, 8 December 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:AddFrags( Integer Frags )
Description:
Increases the number of frags by a specified number.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.AddFrags]Player.AddFrags [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAdd 10 Frags to the player with the index 1.
Used onNewerServer.png
Code
player.GetAll(1):AddFrags(10)
OutputNone


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox