if player in zone
#1

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
Reply
#2

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.
Reply
#3

Here is used streamer, works quickly
https://github.com/AbyssMorgan/SA-MP...GangZoneEx.inc
Reply
#4

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Here is used streamer, works quickly
https://github.com/AbyssMorgan/SA-MP...GangZoneEx.inc
Uhh... Why would he use gangzones for this? If he is using streamer he wouldn't even need his own area function either.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)