SetPlayerHealth

From Onset Developer Wiki
Revision as of 20:18, 13 November 2019 by Kuzkay (talk | contribs)
SetPlayerHealth

Type: Function
Context: Server
Introduced: v1.0

Description

You can use this to set players health (0-100)

Syntax

SetPlayerHealth(player, health)

Parameters

  • player
    Player you want to set health of
  • health
    New health value you want to set player to

Return Value

  • __EDIT_ME__

Example

function heal(player)
   SetPlayerHealth(player, 100)
   AddPlayerChat(player, 'You/'ve healed yourself')
end
AddCommand('heal', heal)

See also

__EDIT_ME__