if player in zone - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: if player in zone (
/showthread.php?tid=598081)
if player in zone -
Karolukas123 - 08.01.2016
Hey, that best way check if player in area ?? I have made stock for stock PlayerInZone(playerid, Float:min_X, Float:min_Y, Float:max_X, Float:max_Y)
but there can i check it.. on onplayerupdate is to fast checking
Re: if player in zone -
Crayder - 08.01.2016
If the function is working, then what's the problem?
And of course OnPlayerUpdate is fast, it's called each time a player updates, which can be hundreds of times per second.
Re: if player in zone -
AbyssMorgan - 08.01.2016
Here is used streamer, works quickly
https://github.com/AbyssMorgan/SA-MP...GangZoneEx.inc
Re: if player in zone -
Crayder - 08.01.2016
Quote:
Originally Posted by AbyssMorgan
|
Uhh... Why would he use gangzones for this? If he is using streamer he wouldn't even need his own area function either.
Re: if player in zone -
AmigaBlizzard - 08.01.2016
If you use streamer, you can use:
native STREAMER_TAG_AREA CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
and
forward OnPlayerEnterDynamicArea(playerid, STREAMER_TAG_AREA areaid);
forward OnPlayerLeaveDynamicArea(playerid, STREAMER_TAG_AREA areaid);
https://sampforum.blast.hk/showthread.php?tid=102865