21.04.2010, 19:33
I don't know if it works...
But I think so.
At the top:
OnPlayerExitVehicle:
Now the last used vehicle id should be saved as: LastUsedVeh[playerid]
So you can use:
But if the "PlayerInfo[playerid][pPcarkey]" isn't a vehicle ID this isn't the answer
But I think so.
At the top:
pawn Код:
new LastUsedVeh[MAX_PLAYERS];
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
LastUsedVeh[playerid] = vehicleid;
return 1;
}
So you can use:
pawn Код:
if (LastUsedVeh[playerid] == PlayerInfo[playerid][pPcarkey])