Player:SetArmor
Description
Sets the player armor to the argument.
Arguments
Example
Sets the player armor to 100 when they types "SetArmor" at the console.
Output: Sets the player armor to 100
Example
Gives the player armor to first vararg when they types "AddArmor" at the console.
concommand.Add( "GiveArmor", function( ply, cmd, args )
local Armor = args[1] or 100
ply:SetArmor( ply:Armor() + Armor )
end )
Output: Adds the player armor to first vararg