How to check if a player is in at the bonnet and the boot of a vehicle
#3

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?
Reply


Messages In This Thread
How to check if a player is in at the bonnet and the boot of a vehicle - by arko123 - 13.04.2014, 08:37
Re: How to check if a player is in at the bonnet and the boot of a vehicle - by Mriss - 13.04.2014, 08:46
Re: How to check if a player is in at the bonnet and the boot of a vehicle - by arko123 - 13.04.2014, 09:28
Re: How to check if a player is in at the bonnet and the boot of a vehicle - by iZN - 13.04.2014, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)