09.10.2014, 16:05
pawn Code:
stock InRangeOfAnyVehicle(playerid)
{
new Float:X, Float:Y, Float:Z, id = -1;
for(new I = 0; I < MAX_VEHICLES; I++)
{
GetVehiclePos(I, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
{
id = I;
break;
}
}
return id;
}