Est HealthAdd

From EventScripts Community Encyclopedia


Overview

Syntax: est_HealthAdd <players> <value>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: est_sethealth

Description

Adds players health.


Parameters

  • players - See Est_PlayerSelection for player selection help.
    • #t - terrorists.
    • #c - counter-terrorists.
  • value - health so will be added.


Examples

event player_say
{
   if(event_var(text) == "morehealth") do
   {
     es_setinfo playermoney 0
     es_getmoney playermoney event_var(userid)
     if(server_var(playermoney) => 1000) do
     {
        es_math playermoney - 1000
        es playerset cash event_var(userid) server_Var(playermoney)
        es est_healthadd event_var(userid) 150
     }
     else do
     {
        es_tell event_var(userid) You don't have enough money!
     }
}


Notes

  • None.


See also

blog comments powered by Disqus