Difference between revisions of "0056"

From GTAMods Wiki
Jump to navigation Jump to search
(request-delete)
Line 1: Line 1:
{{Request-delete}}
+
{{OpCode
 +
| ini        = 0056=6,  player %1d% %6b% %2d% %3d% %4d% %5d%
 +
| description = tests if a player is within an area
 +
| p1          = player handle
 +
| p2          = X1
 +
| p3          = Y1
 +
| p4          = X2
 +
| p5          = Y2
 +
| p6          = show marker flag
 +
| game        = GTA3, Vice City
 +
}}
 +
 
 +
This opcode checks if a player is within an area with given coordinates. X1Y1:X2Y2 is an area (rectangle) corners coordinates. The sixth parameter sets will there be a marker (blue or pink cylinder) (the code must be looped for marker to be visible).
 +
[[Category:OpCodes]]

Revision as of 14:18, 12 January 2009

{{{games}}}


Description
tests if a player is within an area
Syntax
{{{syntax1}}}
Parameter

This opcode checks if a player is within an area with given coordinates. X1Y1:X2Y2 is an area (rectangle) corners coordinates. The sixth parameter sets will there be a marker (blue or pink cylinder) (the code must be looped for marker to be visible).