14.02.2011, 20:10
I have changed your script quite a bit, but this is what i use and it works.
pawn Код:
stock CheckPlayerDistanceToVehicle(Float:rad, playerid, vehicleid)
{
new Float:vx, Float:vy, Float:vz;
GetVehiclePos(vehicleid, vx, vy, vz);
if(IsPlayerInRangeOfPoint(playerid, rad, vx, vy, vz)) return 1;
return 0;
}