Help Safezone - 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: Help Safezone (
/showthread.php?tid=655119)
Help Safezone -
nguyenthanhdanhsamp - 13.06.2018
I want the player when entering the Safezone area to display a notification that this is the Safezone area until the player leaves the area then will no longer show up, how to do this?
Re: Help Safezone -
Sew_Sumi - 13.06.2018
You'd probably be best using OnPlayerEnterDynamicArea.
Other than that, you need to start posting proper topics, and start providing code rather than hoping that someone will hand you what you want.
Also, learning to script is a big portion of how people do all of this.
Re: Help Safezone -
nguyenthanhdanhsamp - 13.06.2018
Quote:
Originally Posted by Sew_Sumi
You'd probably be best using OnPlayerEnterDynamicArea.
Other than that, you need to start posting proper topics, and start providing code rather than hoping that someone will hand you what you want.
Also, learning to script is a big portion of how people do all of this.
|
I need a tutorial tutorial for a sample code
Re: Help Safezone -
GTLS - 13.06.2018
As Sew said. You can use OnPlayerEnterDynamicArea. Use an Array storing the boundaries of a GangZone(Safe Zone in your case). Use That array with OnPlayerEnterDynamicArea to check if the coordinates are
INSIDE the boundaries of a SafeZone. If it is, SendClientMessage or PlayerTextDrawShow what ever you can use.
Re: Help Safezone -
nguyenthanhdanhsamp - 13.06.2018
Quote:
Originally Posted by GTLS
As Sew said. You can use OnPlayerEnterDynamicArea. Use an Array storing the boundaries of a GangZone(Safe Zone in your case). Use That array with OnPlayerEnterDynamicArea to check if the coordinates are INSIDE the boundaries of a SafeZone. If it is, SendClientMessage or PlayerTextDrawShow what ever you can use.
|
do not what of this section, it is in
Filterscripts ?