Small problem with house system
#2

Use IsPlayerInRangeOfPoint in the callback.
WIKI: https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

Example:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, HouseInfo[i][x], HouseInfo[i][y], HouseInfo[i][z]))
{
    //your code, this will run if the player is in range of the pickup
}
Set your range accordingly, 1.0 is appropriate though.
Also those x,y,z arrays are custom as you havent provided any code relative to those arrays.
Reply


Messages In This Thread
Small problem with pickup - by FunnyBear - 31.01.2015, 09:37
Re: Small problem with house system - by Gammix - 31.01.2015, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)