12.08.2012, 21:47
Hello,
Just wanted to ask that how to check if player is near a vehicle.
ThAnKs!
Just wanted to ask that how to check if player is near a vehicle.
ThAnKs!
Hello,
Just wanted to ask that how to check if player is near a vehicle. ThAnKs! |
stock IsPlayerNearVehicle(playerid,vehicleid)
{
new Float:VX,Float:VY,Float:VZ;
GetVehiclePos(vehicleid,VX,VY,VZ);
if(IsPlayerInRangeOfPoint(playerid,5.0,VX,VY,VZ)) return 1;
else return 0;
}