[pawn]
#include <a_samp>
new pCar;
public OnPlayerExitVehicle(playerid, vehicleid)
{
PutPlayerInVehicle(playerid,pCar,0);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
pCar = GetPlayerVehicleID(playerid);
return 1;
}[/pawn]
Ez elv. jó