Difference between revisions of "0256"
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 | ||
− | | | + | | games = {{Icon|t}} |
− | | description = Checks if the player is | + | | command = IS_PLAYER_PLAYING |
− | | | + | | description = Checks if the player is playing |
− | | | + | | syntax1 = 0256: player [''player handle''] defined |
− | | | + | | p1t = [''player handle''] |
+ | | p1d = 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 code that requires the player to exist. | |
− | player | ||
− | [[ | + | == 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
- 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