Quote:
Originally Posted by Mriss
Something like this>
pawn Код:
new Float:vehx, Float:vehy, Float:vehz; GetVehiclePos(/*YOUR, Vehicle ID (e.g GetClosestVehicle stock u can make)*/ vehx, vehy, vehz); if(IsPlayerInRangeOfPoint(playerid, 3.0, vehx, vehy, vehz)) { /* Stuff to Open Bonnet */ SendClientMessage(playerid,0xFFFFFFFF,"You have opened the bonnet"); } else { SendClientMessage(playerid,0xFFFFFFFF,"You are not close enough to the car!"); }
|
This just checks if a player is near a vehicle, not if a player is near the bonnet/boot a vehicle does it?