Checking if a player is in a business or not?
#1

As the title says how would I check if a player is in a business or not?
Reply
#2

use
pawn Код:
IsPlayerInRangeOfPoint()
then enter the coords, distance etc... https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

Quote:
Originally Posted by MikeLovesToHelp
Посмотреть сообщение
use
pawn Код:
IsPlayerInRangeOfPoint()
then enter the coords, distance etc... https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
What if I wanted to recieve the business type from the business they are in?
Reply
#4

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)