25.09.2009, 10:50
This will only work for 0.3:
pawn Код:
public IsPlayerInRangeOfVehicle(playerid, vehicleid, radius)
{
new Float: CarX, Float: CarY, Float: CarZ;
GetVehiclePos(playerid, CarX, CarY, CarZ);
if(IsPlayerInRangeOfPoint(playerid, radius, CarX, CarY, CarZ))
{
return 1;
}
else
{
return 0;
}
}