Difference between revisions of "0256"

From GTAMods Wiki
Jump to navigation Jump to search
(I don't get how they're the same)
m
 
(3 intermediate revisions by the same user 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        = [[GTA 3]], [[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. Use [[0117]] to check if the player is specifically wasted.
 
  
==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, wasted, dead, busted, arrested
+
 
 +
== 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