Police pullover
#4

Quote:
Originally Posted by Eric
Посмотреть сообщение
Can you post the GetClosestVehiclePolice stock, please?
Hey eric, Stu has gone to bed... so i'll post our stock on his behalf.

Код:
stock GetClosestVehiclePolice(playerid)
	{
	#pragma unused playerid
	new Float:x, Float:y, Float:z;
	new Float:dist, Float:closedist=50, closeveh;
	for(new i=1; i < MAX_VEHICLES; i++)
	{
	if(GetVehiclePos(i, x, y, z))
	{
	dist = GetPlayerDistanceFromPoint(playerid, x, y, z);

	if(dist < closedist)
	{
	closedist = dist;
	closeveh = i;
	}
	}
}
	return closeveh;
}
Reply


Messages In This Thread
Police pullover - by Stu1 - 29.10.2012, 01:31
Re: Police pullover - by Edward d - 29.10.2012, 01:55
Re: Police pullover - by Eric - 29.10.2012, 05:35
Re: Police pullover - by guitarmandanny - 29.10.2012, 06:12
Re: Police pullover - by Stu1 - 29.10.2012, 15:57
Re: Police pullover - by Edward d - 29.10.2012, 23:16
Re: Police pullover - by Eric - 30.10.2012, 00:52
Re : Police pullover - by lelemaster - 30.10.2012, 02:09
Re: Re : Police pullover - by Eric - 30.10.2012, 04:03
Re : Police pullover - by lelemaster - 30.10.2012, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)