SetPlayerArmor: Difference between revisions

From Onset Developer Wiki
No edit summary
Kuzkay (talk | contribs)
No edit summary
Line 12: Line 12:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
--This command allows players to set refill their armor
function armor(player)
  SetPlayerArmor(player, 100)
end
AddCommand('armor', armor)
 
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
[[GetPlayerArmor]]
[[GetPlayerArmor]]

Revision as of 20:21, 13 November 2019

SetPlayerArmor

Type: Function
Context: Server
Introduced: v1.0

Description

__EDIT_ME__

Syntax

SetPlayerArmor(player, armor)

Parameters

  • player
    The player identifier.
  • armor
    The armor value.

Return Value

  • This function doesn't have a return value.

Example

--This command allows players to set refill their armor
function armor(player)
   SetPlayerArmor(player, 100)
end
AddCommand('armor', armor)

See also

GetPlayerArmor