10.09.2009, 15:26
pawn Код:
new LastCar[MAX_PLAYERS];
public OnPlayerEnterVehicle(playerid, vehicleid)
{
LastCar[playerid] = vehicleid;
return 1;
}
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 0 && oldstate == 2)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
}
}