19.01.2013, 18:47
This should work...
pawn Код:
if(newkeys & KEY_SECONDARY_ATTACK)
{
print("pressed key");
new newvehid = GetClosestVehicle(playerid, 5.0);
if(newvehid != 0)
{
PutPlayerInVehicle(playerid, newvehid, 0);
print("entered");
}
else
{
print("Failed to find car nearby!");
}
}