Difference between revisions of "0414"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}}
| ini        = 0414=1,%1d% %2d%
+
<hr />
| description = Enables a free treatment for the player
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
| p1          = A player handle
+
'''Description'''
| p2          = A flag
+
: Enables a free treatment for the player
| game        = Vice City, San Andreas
+
'''Syntax'''
| native      = [[SET_FREE_HEALTH_CARE]]
+
: 0414: set_player [''player handle''] single_free_treatment [''int'']
}}
+
'''Parameter'''
This opcode toggles a free treatment for the player. When it is enabled and the player is in hospital, he won't pay for the visit and his
+
: [''player handle'']
weapon will stay with him. The free treatment works only once per visit. To get it once again, re-enable the flag.
+
:: The [[0053|handle of the player]]
 +
: [''int'']
 +
:: 0 = disable free treatment, {{hint|1|or any value other than 0}} = enable free treatment
 +
'''Native analog'''
 +
: [[SET_FREE_HEALTH_CARE]]
  
==Flag==
+
This opcode sets a free treatment for the player. When enabled, if the player is wasted, he will not lose any weapons or cash after respawning. The free treatment works once only, so to allow free treatment again, you have to enable it through this opcode again. This opcode was unused in GTA III in the default script.
'''Flag 0''': Disables a free treatment for the player<br>
+
}}</onlyinclude>
'''Flag 1''': Enables a free treatment for the player<br>
 
  
==Keywords==
+
== Keywords ==
player, free, treatment
+
set, toggle, player, free, treatment, hospital, wasted
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 03:44, 5 January 2012

GTA III Vice City San Andreas


Description

Enables a free treatment for the player

Syntax

0414: set_player [player handle] single_free_treatment [int]

Parameter

[player handle]
The handle of the player
[int]
0 = disable free treatment, 1 = enable free treatment

Native analog

SET_FREE_HEALTH_CARE

This opcode sets a free treatment for the player. When enabled, if the player is wasted, he will not lose any weapons or cash after respawning. The free treatment works once only, so to allow free treatment again, you have to enable it through this opcode again. This opcode was unused in GTA III in the default script.

Keywords

set, toggle, player, free, treatment, hospital, wasted