03.07.2013, 19:37
You basically need to get the nearest garage, and replace
GarageInfo[h][gExteriorX], GarageInfo[h][gExteriorY], GarageInfo[h][gExteriorZ] with the coordinates of the nearest garage.
You could use
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,2.0,GarageInfo[h][gExteriorX], GarageInfo[h][gExteriorY], GarageInfo[h][gExteriorZ]) )
You could use
pawn Код:
new Float:GarageDistance = GetPlayerDistanceFromPoint(playerid, GarageInfo[h][gExteriorX], GarageInfo[h][gExteriorY], GarageInfo[h][gExteriorZ]);
if(GarageDistance == 5)
{
}