Las Used vehicle
#2

I don't know if it works...
But I think so.

At the top:
pawn Код:
new LastUsedVeh[MAX_PLAYERS];
OnPlayerExitVehicle:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  LastUsedVeh[playerid] = vehicleid;
  return 1;
}
Now the last used vehicle id should be saved as: LastUsedVeh[playerid]

So you can use:
pawn Код:
if (LastUsedVeh[playerid] == PlayerInfo[playerid][pPcarkey])
But if the "PlayerInfo[playerid][pPcarkey]" isn't a vehicle ID this isn't the answer
Reply


Messages In This Thread
Las Used vehicle - by graetz - 21.04.2010, 19:27
Re: Las Used vehicle - by CAR - 21.04.2010, 19:33
Re: Las Used vehicle - by graetz - 21.04.2010, 19:38
Re: Las Used vehicle - by Correlli - 21.04.2010, 20:06
Re: Las Used vehicle - by Goobiiify - 21.04.2010, 20:11
Re: Las Used vehicle - by Correlli - 21.04.2010, 20:14
Re: Las Used vehicle - by Goobiiify - 21.04.2010, 20:16
Re: Las Used vehicle - by Correlli - 21.04.2010, 20:18
Re: Las Used vehicle - by Backwardsman97 - 21.04.2010, 20:28
Re: Las Used vehicle - by Nero_3D - 21.04.2010, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)