SA-MP Forums Archive
Wanna know [HELP] - 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: Wanna know [HELP] (/showthread.php?tid=480862)



Wanna know [HELP] - Paween12802 - 13.12.2013

Is there any function of these

Ongamemodeinit()
{
zone1 = gangzonecreat.................
}

Onplayerenterzone <<<< i meant gang zone

Onplayerexitzone

And inside the public is

public onplayerenterzone(playerid, zoneid)
{
if(zoneid == zone1)
{
flashzoneforplayer...................
}
}


Any.... detect that player in custom zone


Re: Wanna know [HELP] - ProjectNewYork - 13.12.2013

Try using:

PHP код:
if(IsPlayerInRangeOfPoint(playeridrangeXYZ); //change those range,Z,X,Y to ur coordinates! 
And The Code Means:

IsPlayerInRangeOfPoint- Checks if the player is in rage of a specific point
playerid- Check the player's id
range- The furthest distance the player can be from the point to be in range.
X-The X coordinate of the point to check the range to
Y-The Y coordinate of the point to check the range to
Z-The Z coordinate of the point to check the range to

The returns should be:
1- true
0- false

Hope i helped


Re: Wanna know [HELP] - Sawalha - 13.12.2013

use streamer include, see this tut, useful
https://sampforum.blast.hk/showthread.php?tid=453013

Good luck.


Re: Wanna know [HELP] - Yaa - 30.10.2016

Use This one

https://github.com/LVPlayground/zone...er/a_zones.pwn


Re: Wanna know [HELP] - DevHarden - 30.10.2016

Quote:
Originally Posted by Yaa
Посмотреть сообщение
3 year old thread...


Re: Wanna know [HELP] - Yaa - 30.10.2016

I Noticed that Lol


Re: Wanna know [HELP] - iLearner - 30.10.2016

Nvm delete this, didn't saw the date.