SA-MP Forums Archive
How to make command working only on one place? - 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: How to make command working only on one place? (/showthread.php?tid=332219)



How to make command working only on one place? - iWaYz - 07.04.2012

Hello, I'm wondering is it posible to make command working only on one place? I mean if I'm on specific parking lot the command works only there? And if I'm on another place and type /tune for example to show please go to Tune parking?

P.S Sorry for my English it's not very good


Re: How to make command working only on one place? - Hoss - 07.04.2012

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Good luck


Re: How to make command working only on one place? - Aira - 07.04.2012

Ofcourse,
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint


EDIT:
@Hoss
Quote:
Originally Posted by Hoss
Посмотреть сообщение
Lol Posted at the same time x]


Re: How to make command working only on one place? - TzAkS. - 07.04.2012

Код:
if(PlayerToPoint(range,playerid, x, y ,z)
{
//code

else
{
SendClientMessage(playerid, COLOR, "You are not at right place");
}
}



Re: How to make command working only on one place? - iWaYz - 07.04.2012

Well I do not expect to get an answer so fast... Thank you guys


Re: How to make command working only on one place? - BlackbirdXd - 14.02.2017

Thanks I was looking for this too..