Quote:
Originally Posted by JoeBullet
Quote:
Originally Posted by Calon
IsPlayerInRangeOfVehicle
pawn Код:
public IsPlayerInRangeOfVehicle(playerid, vehicleid, radius) { new Float: CarPpX, Float: CarPpY, Float: CarPpZ; GetVehiclePos(playerid, CarPpX, CarPpY, CarPpZ); if(IsPlayerInRangeOfPoint(playerid, radius, CarPpX, CarPpY, CarPpZ)) { return 1; } else { return 0; } }
|
Isn't it easier to do just return IsPlayerInRangeOfPoint(playerid, radius, CarPpX, CarPpY, CarPpZ);
It will throw same result and it's more readable, people will laugh at you if you continue to do like that.
|
Well, not really. As you don't seem like the smartest of the apple in the fruit basket, it returns 1 if they're in range of the vehicle and 0 if they're not, it's not returning the radius result.