19.09.2014, 20:14
Hi, I'm trying to make a /repair command that you need to be behind the car to repair it. Sort of like CrazyBob's /vehrepair command. Thx!
stock IsPlayerNearVehicle(playerid, vehid)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(vehid, X, Y, Z);
IsPlayerInRangeOfPoint(playerid, 2, X, Y-2, Z) return 1;
return 0;
}
You can try this
pawn Код:
'radius' would be the area of the spot inwhich the player must be. (i.e. 3.0) |