14.05.2016, 17:30
well, i tried to make a function that checks if player is near driver's door.
somehow it's not working.
/lock command by itself works - also car can be locked, but cannot be unlock - doesn't work.
PHP код:
new Float: x, Float: y, Float: z;
GetVehicleModelInfo(car[id][carModel], VEHICLE_MODEL_INFO_FRONTSEAT, x, y, z);
if (!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
return SendErrorMsg(playerid, "You are not near car driver's door.");
/lock command by itself works - also car can be locked, but cannot be unlock - doesn't work.