Difference between revisions of "0256"

From GTAMods Wiki
Jump to navigation Jump to search
(I don't get how they're the same)
(page updates)
Line 1: Line 1:
{{OpCode
+
{{Icon|t}} '''IS_PLAYER_PLAYING'''
| ini        = 0256=1,  %1d%
+
<hr />
| description = Checks if the player is defined
+
'''Description'''
| p1          = Player handle
+
: Checks if the player is playing
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Syntax'''
| native      = [[IS_PLAYER_PLAYING]]
+
: 0256: &nbsp; player [''player handle''] defined
}}
+
'''Parameter'''
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.
+
: [''player handle'']
 +
:: The [[0053|handle of the player]]
  
==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 codes that requires the player to exist.
player, defined, wasted, dead, busted, arrested
+
 
 +
== Keywords ==
 +
check, player, defined, playing, alive, dead, busted, arrested, exist
 +
 
 +
== See also ==
 +
* [[0117]], checks if the player is dead
 +
* [[0130]], checks if the player is arrested
 +
 
 +
[[Category:OpCodes]]

Revision as of 17:20, 29 July 2015

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 codes that requires the player to exist.

Keywords

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

See also

  • 0117, checks if the player is dead
  • 0130, checks if the player is arrested