28.07.2013, 09:29
https://sampwiki.blast.hk/wiki/Areacheck
position 1: X: 20.0 Y: 100.0
position 2: X: 35.0 Y: 250.0
looks like
Position 1 is the minimum- and position 2 the maximum values.
A Area check for this Area would look like
it's
position 1: X: 20.0 Y: 100.0
position 2: X: 35.0 Y: 250.0
looks like
Код:
_________________ X: 35.0 Y: 250.0 | | | This is | | the area that | | you want | | to define! | |________________| X: 20.0 Y: 100.0
A Area check for this Area would look like
Код:
IsPlayerInArea(playerid,20.0,35.0,100.0,250.0);
Код:
IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy);