Est SetHealth
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: 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: none [edit] DescriptionSets players health.
[edit] Parameters
[edit] Examplesevent 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_sethealth event_var(userid) 150 } else do { es_tell event_var(userid) You don't have enough money! } }
[edit] Notes
[edit] See also |
