/buygarage spam
#4

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

}
Reply


Messages In This Thread
/buygarage spam - by Jermi - 03.07.2013, 19:14
Re: /buygarage spam - by NeroX98 - 03.07.2013, 19:20
Re: /buygarage spam - by Jermi - 03.07.2013, 19:24
Re: /buygarage spam - by Zigonja - 03.07.2013, 19:37
Re: /buygarage spam - by Jermi - 03.07.2013, 19:39
Re: /buygarage spam - by Jermi - 03.07.2013, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)