Difference between revisions of "0256"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|t}} '''IS_PLAYER_PLAYING'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = IS_PLAYER_PLAYING
: Checks if the player is playing
+
| description = Checks if the player is playing
'''Syntax'''
+
| syntax1    = 0256: &nbsp; player [''player handle''] defined
: 0256: &nbsp; player [''player handle''] defined
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
}}
:: The [[0053|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.
+
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 ==
 
== Keywords ==
Line 15: Line 17:
  
 
== See also ==
 
== See also ==
* [[0117]], checks if the player is dead
+
* {{Icon|t}} [[0117]], checks if the player is dead
* [[0130]], checks if the player is arrested
+
* {{Icon|3}} [[0130]], checks if the player is arrested
 
 
[[Category:OpCodes]]
 

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