Difference between revisions of "0256"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
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.
  
 
== Keywords ==
 
== Keywords ==
Line 15: Line 14:
  
 
== 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|t}} [[0130]], checks if the player is arrested
 
 
[[Category:OpCodes]]
 

Revision as of 16:32, 4 June 2016

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.

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 Vice City San Andreas 0130, checks if the player is arrested