Difference between revisions of "0256"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0256=1, %1d% | description = Checks if the player is defined | p1 = Player handle | game = GTA3, Vice City, San Andreas | native = [[IS_PLAYE...)
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0256=1,  %1d%
+
| games      = {{Icon|t}}
| description = Checks if the player is defined
+
| command    = IS_PLAYER_PLAYING
| p1          = Player handle
+
| description = Checks if the player is playing
| game        = GTA3, Vice City, San Andreas
+
| syntax1    = 0256:   player [''player handle''] defined
| native      = [[IS_PLAYER_PLAYING]]
+
| p1t        = [''player handle'']
 +
| p1d        = The [[0053|handle of the player]]
 
}}
 
}}
This checks if the player is defined. The player is not defined when the player dies or gets busted. It is used throughout the script to check if the player exists before executing codes that requires the player to exist.
 
  
==Keywords==
+
This conditional opcode returns true if you are playing, i.e. the wasted screen or busted screen does not pop up. It is used throughout the script to check if the player exists before executing code that requires the player to exist.
player, defined
 
  
[[Category:OpCodes]]
+
== Example ==
 +
:''See [[020A#Example]]''
 +
 
 +
== Keywords ==
 +
check, player, defined, playing, alive, dead, busted, arrested, exist
 +
 
 +
== See also ==
 +
* {{Icon|t}} [[0117]], checks if the player is dead
 +
* {{Icon|3}} [[0130]], checks if the player is arrested

Latest revision as of 00:10, 21 January 2017

GTA III Vice City San Andreas IS_PLAYER_PLAYING


Description
Checks if the player is playing
Syntax
0256:   player [player handle] defined
Parameter
[player handle]
The handle of the player

This conditional opcode returns true if you are playing, i.e. the wasted screen or busted screen does not pop up. It is used throughout the script to check if the player exists before executing code that requires the player to exist.

Example

See 020A#Example

Keywords

check, player, defined, playing, alive, dead, busted, arrested, exist

See also

  • GTA III Vice City San Andreas 0117, checks if the player is dead
  • GTA III 0130, checks if the player is arrested