Checking if a player is in a business or not? - 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: Checking if a player is in a business or not? (
/showthread.php?tid=430546)
Checking if a player is in a business or not? -
Zalman - 14.04.2013
As the title says how would I check if a player is in a business or not?
Re: Checking if a player is in a business or not? -
Isolated - 14.04.2013
use
then enter the coords, distance etc...
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Re: Checking if a player is in a business or not? -
Zalman - 14.04.2013
Quote:
Originally Posted by MikeLovesToHelp
|
What if I wanted to recieve the business type from the business they are in?
Re: Checking if a player is in a business or not? -
Isolated - 14.04.2013
same functions..
pawn Код:
if(IsPlayerInRangeOfPoint(...))
{
SendClientMessage(playerid, -1, "This business is owned by Isolated.");
SendClientMessage(playerid, -1, "The business sells left handed pens.");
}
That could be used as a command, timers etc...