19.01.2013, 20:08
it works, it only doesnt puts me in any vehicle... it does says the "entered" in console... i used yours CodyCummings, but doesnt works properly, i got this now:
wuts wrong with this?
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!");
}
}