SA-MP Forums Archive
GangZone - 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: GangZone (/showthread.php?tid=658147)



GangZone - severance - 24.08.2018

Ive made quite a lot of gangzones right now, but I got a question guys, what kind of function should I use to detect if a player is leaving the gangzone?

Let's suppose I got this gang zone that a player should not leave:

PHP код:
GZ_ZONE1 GangZoneCreate(2036.1328125,1195.3125,2425.78125,1382.8125); 
?

I found out the range of point stuff, but this kinda like not what Im looking for. Maybe you guys could give me a tip.


Re: GangZone - Shinja - 25.08.2018

Create areas and use callbacks OnPlayerEnterDynamicArea OnPlayerLeaveDynamicArea


Re: GangZone - Sew_Sumi - 25.08.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Create areas and use callbacks OnPlayerEnterDynamicArea OnPlayerLeaveDynamicArea
*cough* forgot to install the streamer *cough*


Re: GangZone - severance - 25.08.2018

Is there any tutorials explaining the usage of those callbacks and creating areas?


Re: GangZone - Shinja - 25.08.2018

https://sampforum.blast.hk/showthread.php?tid=102865
Read about areas